/* ==============================
   Admin Interface - Deutz Passion
   ============================== */

/* Reset rapide */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f8f8;
    color: #333;
    font-size: 14px;
}

/* Conteneur principal */
#main-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Bloc gauche (infos) */
#bloc_gauche {
    width: 25%;
    background-color: #e9e9e9;
    padding: 20px;
    border-right: 1px solid #ccc;
}

#bloc_gauche h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

#bloc_gauche p {
    margin-bottom: 15px;
}

/* Bloc droit (actions + logs) */
#bloc_droite {
    width: 75%;
    padding: 20px;
    background-color: #fff;
}

#bloc_droite h2 {
    margin-bottom: 10px;
    color: #0071c5;
    border-bottom: 2px solid #0071c5;
    padding-bottom: 5px;
}

.action-list {
    list-style: none;
    margin-bottom: 20px;
}

.action-list li {
    margin-bottom: 8px;
}

.action-list li a {
    text-decoration: none;
    color: #0071c5;
    font-weight: bold;
    transition: color 0.2s ease;
}

.action-list li a:hover {
    color: #005a99;
}

/* Table logs */
.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.log-table th, .log-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 13px;
}

.log-table th {
    background-color: #0071c5;
    color: #fff;
}

.log-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.log-table tr.success td {
    background-color: #d9f2d9;
}

.log-table tr.failed td {
    background-color: #f8d7da;
}

/* Pagination */
.pagination {
    margin-top: 10px;
}

.pagination a {
    padding: 6px 12px;
    margin-right: 5px;
    background-color: #0071c5;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background-color: #005a99;
}

/* Login page */
.login-container {
    width: 350px;
    margin: 80px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #0071c5;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #aaa;
    border-radius: 3px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #0071c5;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-container button:hover {
    background-color: #005a99;
}

/* Messages d'erreur */
p.error {
    color: red;
    margin-bottom: 10px;
    text-align: center;
}

/* Bouton retour à l'accueil pleine largeur - bloc gauche */
.btn-home-left-full {
    display: block;           /* prend toute la largeur disponible */
    width: 100%;
    text-align: center;
    padding: 12px 0;          /* un peu plus grand pour ressembler à un bouton menu */
    margin-top: 20px;
    background-color: #0071c5;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.btn-home-left-full:hover {
    background-color: #005a99;
}

/* Sous-menu caché par défaut avec effet slide */
.menu-deroulant .submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 15px;
    transition: max-height 0.3s ease;
}

/* Les éléments du sous-menu */
.menu-deroulant .submenu li {
    margin: 5px 0;
}

/* Curseur pointer pour le lien principal */
.menu-deroulant > a {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flèche */
.menu-deroulant .arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}
