  :root {
            --bg: #0f172a;
            --panel: #1e293b;
            --accent: #38bdf8;
            --unique: #22c55e;
            --text: #f8fafc;
            --text-dim: #94a3b8;
            --border: rgba(255, 255, 255, 0.1);
        }
        a {
    color: inherit;            /* Přebere barvu textu od rodiče */
    text-decoration: inherit;  /* Odstraní podtržení (pokud ho rodič nemá) */
    font-family: inherit;      /* Přebere stejný font */
    font-size: inherit;        /* Přebere stejnou velikost */
    font-weight: inherit;      /* Přebere tučnost písma */
    cursor: default;           /* (Volitelné) Změní packu zpět na běžný šipkový kurzor */
}

        body { 
            margin: 0; font-family: 'Inter', sans-serif; 
            background-color: var(--bg); color: var(--text);
            display: flex; height: 100vh; overflow: hidden;
        }


        /* Základní styl pro alerty */
.alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    border-left: 5px solid;
}

/* Ikony v alertech */
.alert i {
    font-size: 1.4rem;
}

/* Varianta CHYBA (Error) */
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: #ef4444;
}

/* Varianta VAROVÁNÍ (Warning) */
.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: #f59e0b;
}

/* Varianta INFO */
.alert-info {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-color: var(--accent);
}

/* Varianta ÚSPĚCH (Success) */
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: #22c55e;
}

        /* --- LOGIN --- */
        #login-overlay {
            position: fixed; inset: 0; background: var(--bg);
            display: flex; align-items: center; justify-content: center; z-index: 10000;
        }
        .login-card {
            background: var(--panel); padding: 40px; border-radius: 20px;
            width: 100%; max-width: 380px; text-align: center; border: 1px solid var(--border);
        }
        .login-input {
            width: 100%; padding: 12px; margin: 10px 0; background: #0f172a;
            border: 1px solid var(--border); color: white; border-radius: 8px;
        }

        /* --- LAYOUT --- */
        .sidebar {
                width: 280px; 
                background: var(--panel); 
                border-right: 1px solid var(--border);
                display: flex; 
                flex-direction: column; 
                padding: 25px;
                transition: transform 0.3s ease, left 0.3s ease; /* Přidej tuto plynulost */
            }
        .main-container { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
        
        .top-bar {
            padding: 15px 30px; background: var(--panel); border-bottom: 1px solid var(--border);
            display: flex; justify-content: space-between; align-items: center;
        }

        /* Karty statistiky (Dnes, Včera, Týden...) */
        .stats-grid {
            display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; padding: 25px;
        }
        .stat-box {
            background: var(--panel); padding: 20px; border-radius: 12px;
            border: 1px solid var(--border); text-align: center;
        }
        .stat-box .val { font-size: 1.6rem; font-weight: bold; color: var(--accent); display: block; }
        .stat-box .lbl { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; margin-top: 5px; }

        .content-layout { padding: 0 25px 25px 25px; display: grid; grid-template-columns: 1fr; gap: 25px; }
        .card { background: var(--panel); padding: 25px; border-radius: 16px; border: 1px solid var(--border); }

        /* TABULKA DLE STAT.PHP */
        table { width: 100%; border-collapse: collapse; margin-top: 15px; }
        th { text-align: left; color: var(--text-dim); padding: 12px; border-bottom: 2px solid var(--border); font-size: 0.85rem; }
        td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
        tr:hover { background: rgba(255,255,255,0.02); }

        .progress-bg { background: rgba(255,255,255,0.05); border-radius: 10px; width: 100px; height: 8px; display: inline-block; margin-left: 10px; overflow: hidden;}
        .progress-fill { background: var(--unique); height: 100%; }
        
        .user-info { display: flex; align-items: center; gap: 10px; cursor: pointer; }
        .avatar { width: 35px; height: 35px; background: var(--accent); border-radius: 50%; color: #0f172a; display: flex; align-items: center; justify-content: center; font-weight: bold; }


        /* Stylování filtru */
    .filter-card {
        background: var(--panel);
        padding: 15px 25px;
        border-radius: 12px;
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .filter-form {
        display: flex;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .filter-form label {
        color: var(--text-dim);
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* Moderní stylování inputu pro datum */
    .filter-form input[type="date"] {
        background: #0f172a;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 8px 15px;
        color: var(--text);
        font-family: inherit;
        outline: none;
        transition: border-color 0.3s;
        cursor: pointer;
    }

    .filter-form input[type="date"]:focus {
        border-color: var(--accent);
    }

    /* Stylování kalendářové ikony v prohlížeči (pro Chrome/Edge) */
    ::-webkit-calendar-picker-indicator {
        filter: invert(1); /* Udělá ikonu kalendáře bílou */
        cursor: pointer;
        opacity: 0.6;
    }
    ::-webkit-calendar-picker-indicator:hover { opacity: 1; }

    /* Moderní tlačítko */
    .btn-submit {
        background: var(--accent);
        color: #0f172a;
        border: none;
        padding: 9px 20px;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s, opacity 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-submit:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    /* --- RESPONSIVE STYLES --- */

/* Skrytá tlačítka pro desktop */
.mobile-menu-toggle, .mobile-menu-close {
    display: none;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 sloupce na tabletu */
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }

    /* Sidebar jako overlay */
    .sidebar {
        position: fixed;
        left: -280px; /* Schovaný vlevo */
        top: 0;
        bottom: 0;
        z-index: 9999;
        transition: 0.3s ease;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        left: 0; /* Vysunutý */
    }

    /* Tlačítka menu */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;
        background: var(--accent);
        color: var(--bg);
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 1.2rem;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        background: none;
        border: none;
        color: var(--text-dim);
        font-size: 2rem;
        cursor: pointer;
    }

    /* Úprava horní lišty */
    .top-bar {
        padding: 15px 15px 15px 70px; /* Prostor pro toggle tlačítko */
    }
    
    .page-title {
        font-size: 1.1rem;
    }

    .user-info span {
        display: none; /* Schová jméno, nechá jen avatar */
    }

    /* Statistiky pod sebe */
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    /* Filtr na mobilu */
    .filter-card {
        padding: 15px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form span {
        display: none; /* Schová text "Zobrazeno..." pro úsporu místa */
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}