/* ========================================================================= */
/* --- admin.css : Styles pour l'Admin Panel (index.html) et la Base --- */
/* ========================================================================= */

/* --- Variables Générales (DOIVENT être définies ici) --- */
:root {
    --color-primary: #ff0000;          /* Rouge Vif (Accent) */
    --color-secondary: #99aab5;       /* Gris Clair (Texte Muet) */
    --color-background-deep: #121212; /* Noir Profond (Fond de page) */
    --color-background-dark: #1e1e1e; /* Gris Sombre (Header/Footer) */
    --color-background-card: #1f1f1f; /* Gris pour le Conteneur/Cartes */
    --color-text-light: #f5f5f5;      /* Blanc/Gris clair */
    --color-text-muted: #aaaaaa;      /* Gris pour les liens/labels */
    --color-border: #333333;          /* Bordures des champs */
    --color-button-hover: #cc0000;    /* Bouton hover rouge */
    
    /* Variables de Statut */
    --color-status-undetected: #43b581; /* Vert pour Updated */
    --color-status-maintenance: #faa61a; /* Orange pour Maintenance */
    --color-status-risk: #f04747; /* Rouge pour Risk */
}

/* --- Base et Mise en page Globale --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-background-deep);
    color: var(--color-text-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--color-background-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    padding: 15px 0;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 26px;
    color: var(--color-text-light);
}

.logo-e {
    color: var(--color-primary);
    font-size: 1.1em;
}

nav .nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

nav .nav-link:hover,
nav .nav-link.active {
    color: var(--color-text-light);
    background-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(88, 101, 242, 0.5);
}
nav .nav-link:hover {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--color-primary);
}
nav .nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* --- Contenu Principal (Main Content) --- */
.main-content {
    flex-grow: 1; 
    padding: 50px 20px;
    display: flex;
    justify-content: center; 
    align-items: center; /* Centrage vertical pour le formulaire Admin */
}

/* --- Conteneur du Formulaire (ADMIN) --- */
.container {
    background: var(--color-background-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px; 
    border-top: 5px solid var(--color-primary);
    animation: fadeIn 0.5s ease-out;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--color-text-muted);
    font-size: 12px;
    border-top: 1px solid var(--color-background-dark);
    width: 100%;
}

/* ANIMATIONS CLÉS (Communes) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { color: var(--color-primary); }
    50% { color: #8a93ff; }
    100% { color: var(--color-primary); }
}

/* ========================================================================= */
/* --- STYLES POUR LA PAGE DE STATUT --- */
/* ========================================================================= */

/* Override du conteneur principal pour la page de statut */
.status-page-container {
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.status-title-override {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.status-legend {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Grille des statuts */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

/* Cartes de statut */
.status-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease-out;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.status-card:hover::before {
    transform: translateX(100%);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Statut Updated - Vert professionnel */
.status-card.updated {
    border-left: 3px solid #10b981;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.status-card.updated:hover {
    border-left-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

/* Statut Maintenance - Orange professionnel */
.status-card.maintenance {
    border-left: 3px solid #f59e0b;
    border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.status-card.maintenance:hover {
    border-left-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

/* Statut Risk - Rouge professionnel */
.status-card.risk {
    border-left: 3px solid #ef4444;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.status-card.risk:hover {
    border-left-color: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.logo-e {
    color: var(--color-primary);
    font-weight: 900;
    animation: pulse 4s infinite ease-in-out;
}
/* Contenu des cartes */
.card-header {
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.card-title {
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.game-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.game-logo:hover {
    transform: scale(1.1);
}

.card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.card-status.updated {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-status.maintenance {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-status.risk {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-details {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.details-list li {
    padding: 2px 0;
    color: var(--color-text-muted);
    font-size: 12px;
    position: relative;
    padding-left: 12px;
}

.details-list li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Animations simplifiées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .status-card {
        padding: 14px;
    }
    
    .card-title {
        font-size: 15px;
    }
}
