/* style.css */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Login Page */
body.login-page {
    align-items: center;
    justify-content: center;
    background-color: var(--bs-tertiary-bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--bs-body-bg); 
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dashboard Elemente */
.navbar-brand {
    font-weight: bold;
    color: var(--bs-primary) !important;
}

.stat-card {
    background-color: var(--bs-body-bg); 
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-left: 5px solid var(--bs-primary);
    border: 1px solid var(--bs-border-color-translucent);
    border-left-width: 5px;
}

.table-container {
    background-color: var(--bs-body-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--bs-border-color-translucent);
}

/* Anpassungen für Darkmode Tabellen */
[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #2b3035;
    --bs-table-color: #fff;
}

.text-small { font-size: 0.85rem; }

/* Zeilenfarben */
.row-holiday { background-color: var(--bs-warning-bg-subtle) !important; }
.row-weekend { background-color: var(--bs-secondary-bg-subtle) !important; }

/* --- FIX: Dark Mode Anpassungen für Tabellen-Zeilen --- */

[data-bs-theme="dark"] {
    /* 1. Wochensummen-Zeile (bisher hellgrau -> jetzt dunkelgrau) */
    .table-secondary {
        --bs-table-bg: #343a40;       /* Dunkler Hintergrund */
        --bs-table-color: #e9ecef;    /* Helle Schrift */
        border-color: #495057;
    }

    /* 2. Feiertage (bisher hellgelb -> jetzt dunkles Ocker/Braun) */
    .table-warning, .row-holiday {
        --bs-table-bg: #584c18;       /* Dunkles Gelb/Braun */
        --bs-table-color: #e9ecef;    /* Helle Schrift */
        border-color: #6c5f28;
    }
    
    /* 3. Wochenenden (etwas abdunkeln) */
    .row-weekend {
        background-color: #2b3035 !important;
        color: #adb5bd;
    }

    /* 4. WICHTIG: Das "text-muted" (graue Schrift) lesbar machen */
    /* Sorgt dafür, dass "(Wochensumme)" und "(Mo)" hellgrau statt dunkelgrau sind */
    .table-secondary .text-muted,
    .table-warning .text-muted,
    .row-holiday .text-muted,
    .text-muted {
        color: #adb5bd !important;    /* Helles Grau */
    }
}