/* A lábléc teljes szélességű konténere */
.admin-footer {
    width: 100%;
    padding: 30px 0;            /* Térköz a lista alja és a logó között */
    margin-top: 40px;           /* Biztosítja, hogy ne ragadjon rá a fenti táblázatokra */
    background-color: #fafafa;  /* Opcionális: egy halvány szürke háttér a láblécnek */
    border-top: 1px solid #eee; /* Finom elválasztó vonal */
}

/* A logót tároló doboz középre igazítása */
.footer-logo-container {
    display: flex;
    justify-content: center;    /* Vízszintesen középre igazít */
    align-items: center;        /* Függőlegesen középre igazít */
}

/* A saját logód méretezése */
.footer-logo {
    max-height: 40px;           /* Korlátozza a magasságot, hogy elegáns maradjon */
    width: auto;                /* Megtartja a méretarányt */
    opacity: 0.6;               /* Opcionális: kicsit halványabb, hogy ne legyen tolakodó */
    transition: opacity 0.3s;   /* Finom animáció az egér ráhúzásakor */
}

/* Amikor az egeret ráhúzzák a logóra */
.footer-logo:hover {
    opacity: 1;                 /* Teljesen felerősödik a színe */
}




.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    background-color: #2c3e50;
    color: #ffffff;
}

.admin-logo {
    max-height: 45px;
    width: auto;
    margin-right: 15px;
    display: block;
}

.header-bar h1 {
    font-size: 1.5rem;
    margin: 0;
    flex-grow: 1;
}

.btn-logout {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #e74c3c;
    border-radius: 4px;
}
body { font-family: 'Segoe UI', Tahoma, sans-serif; background-color: #f4f6f9; margin: 0; padding: 20px; color: #333; }
        .container { max-width: 1200px; margin: 0 auto; }
       
        
        /* Statisztika */
        .stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
        .card .number { font-size: 32px; font-weight: bold; }
        .card.bent .number { color: #2ecc71; }
        .card.kint .number { color: #e74c3c; }
        .card.keso .number { color: #e67e22; }
        
        /* Szűrősáv */
        .filter-section { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 25px; }
        .filter-row { display: flex; gap: 15px; align-items: center; margin-bottom: 12px; }
        .filter-btn { text-decoration: none; padding: 8px 16px; background: #f0f2f5; color: #4b4f56; border-radius: 6px; font-size: 14px; border: 1px solid #e1e4e8; }
        .filter-btn.active { background: #3498db; color: white; font-weight: bold; }

        /* Táblázatok */
        h2 { color: #2c3e50; margin: 30px 0 15px 0; display: flex; align-items: center; gap: 10px; }
        table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 30px; }
        th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
        th { background-color: #34495e; color: white; }
        tr:hover { background-color: #f9f9f9; }
        
        .badge { padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }
        .badge.bent { background-color: #d4edda; color: #155724; }
        .badge.kint { background-color: #f8d7da; color: #721c24; }
        .badge.keses { background-color: #fce8e6; color: #a83232; border: 1px solid #f5c2c2; }
        
        /* Késők piros szekciója */
        .keso-section-title { color: #c0392b; border-bottom: 2px solid #e74c3c; padding-bottom: 5px; }
        .keso-table th { background-color: #c0392b; }

        /* --- MOBIL NÉZET (768px-nél kisebb kijelzők, pl. okostelefonok) --- */
@media screen and (max-width: 768px) {
    .header-bar {
        flex-direction: column;    /* Egymás alá rakja a logót, címet és gombot */
        height: auto;              /* Engedi, hogy a tartalom szerint nyúljon a magasság */
        padding: 15px;             /* Kicsit kisebb belső margó */
        gap: 12px;                 /* Fix távolság az egymás alá került elemek között */
        text-align: center;        /* Középre igazítja a szövegeket */
    }

    .admin-logo {
        margin-right: 0;           /* Mobilra már nem kell az oldalsó margó */
        max-height: 40px;          /* Kicsit kisebb logó, hogy spóroljunk a hellyel */
    }

    .header-bar h1 {
        font-size: 1.2rem;         /* Kisebb betűméret, hogy ne törjön csúnyán több sorba */
        width: 100%;
    }

    .btn-logout {
        width: 100%;               /* A kijelentkezés gomb teljes szélességű lesz, könnyebb rányomni */
        box-sizing: border-box;
    }



    table, table thead, table tbody, table tr { 
        display: block; 
        width: 100%;
        box-sizing: border-box;
    }
    
    table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    /* A kártya alapbeállítása mindkét táblázat sorainak */
    table tr { 
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 10px 15px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    /* Elrejtünk minden olyan cellát, aminek nincs külön osztálya */
    table td { 
        display: none !important; 
    }
    
    /* A NÉV megjelenítése és formázása mindkét táblázatban */
    table td.mobil-nev { 
        display: block !important;
        font-size: 1.05rem;
        padding: 0;
        margin-right: 6px;
        white-space: nowrap;
    }
    
    table td.mobil-nev strong {
        display: inline !important;
    }
    
    /* A CSOPORT megjelenítése közvetlenül a név mögé */
    table td.mobil-csoport { 
        display: block !important;
        font-size: 0.95rem;
        padding: 0;
        color: #7f8c8d;
        white-space: nowrap;
    }
    
    /* Zárójelek hozzáadása a csoporthoz */
    table td.mobil-csoport::before { 
        content: "("; 
    }
    table td.mobil-csoport::after { 
        content: ")"; 
    }

    /* Biztosítjuk, hogy az üres táblázat üzenete (colspan) látható maradjon */
    table td[colspan] {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 20px !important;
    }



   
    

   



    /* --- RESPONSIVE GOMBOZOTT SZŰRŐK --- */
    
    /* A szűrő szekció alapbeállítása */
    .filter-section {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Távolság a Nemek és a Csoportok blokkja között */
        padding: 10px 5px;
    }

    /* Egy-egy szűrő sor (Nemek vagy Csoportok) */
    .filter-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Kétoszlopos rácsot hoz létre */
        gap: 8px !important;
        width: 100%;
    }

    /* A kategória megnevezése (pl. "Nemek szűrése:" / "Csoport szűrés:") */
    .filter-row .filter-btn:first-child,
    .filter-row span[style*="background:#34495e"] {
        grid-column: span 2 !important; /* A felirat teljes szélességben kinyúlik a gombok felett */
        text-align: center;
        background-color: #34495e !important;
        font-weight: bold;
        padding: 8px !important;
        border-radius: 6px;
    }

    /* Maguk a kattintható szűrőgombok */
    .filter-row a.filter-btn {
        display: block !important;
        text-align: center;
        padding: 12px 8px !important; /* Kényelmes, vastagabb gombok mobilon */
        font-size: 0.95rem !important;
        border-radius: 6px;
        box-sizing: border-box;
        text-decoration: none;
        width: 100% !important;
    }



}


