 :root {
        --primary-color: #4361ee;
        --success-color: #4cc9f0;
        --warning-color: #f72585;
        --danger-color: #7209b7;
        --text-dark: #2b2d42;
        --text-light: #6c757d;
        --bg-light: #f8f9fa;
        --border-color: #e9ecef;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        --radius: 12px;
    }

    .dashboard-container {
        padding: 30px;
        background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        min-height: 100vh;
    }

    /* En-tête du dashboard */
    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        background: white;
        padding: 25px 30px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .dashboard-title {
        color: var(--text-dark);
        font-weight: 700;
        margin-bottom: 5px;
        font-size: 1.8rem;
    }

    .dashboard-subtitle {
        color: var(--text-light);
        margin: 0;
        font-size: 1rem;
    }

    .header-info {
        display: flex;
        align-items: center;
    }

    .last-update {
        background: var(--bg-light);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    /* Section KPI */
    .kpi-section {
        margin-bottom: 30px;
    }

    .kpi-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .kpi-card {
        background: white;
        border-radius: var(--radius);
        padding: 25px;
        box-shadow: var(--shadow);
        display: flex;
        align-items: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border-left: 4px solid;
    }

    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .kpi-primary { border-left-color: var(--primary-color); }
    .kpi-success { border-left-color: var(--success-color); }
    .kpi-warning { border-left-color: var(--warning-color); }
    .kpi-danger { border-left-color: var(--danger-color); }

    .kpi-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
        font-size: 1.5rem;
        color: white;
    }

    .kpi-primary .kpi-icon { background: var(--primary-color); }
    .kpi-success .kpi-icon { background: var(--success-color); }
    .kpi-warning .kpi-icon { background: var(--warning-color); }
    .kpi-danger .kpi-icon { background: var(--danger-color); }

    .kpi-value {
        font-size: 2rem;
        font-weight: 700;
        margin: 0 0 5px 0;
        color: var(--text-dark);
    }

    .kpi-label {
        color: var(--text-light);
        margin: 0 0 10px 0;
        font-weight: 500;
    }

    .kpi-trend {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    /* Section alertes */
    .alerts-section {
        margin-bottom: 30px;
    }

    .alerts-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 25px;
    }

    .alert-card {
        background: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .alert-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border-color);
    }

    .header-title {
        display: flex;
        align-items: center;
    }

    .header-title h3 {
        margin: 0;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1.1rem;
    }

    .header-badge .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .alert-card .card-body {
        padding: 25px;
        max-height: 400px;
        overflow-y: auto;
    }

    .alert-card .card-footer {
        padding: 15px 25px;
        background: var(--bg-light);
        border-top: 1px solid var(--border-color);
    }

    /* Listes d'alertes */
    .empty-state {
        text-align: center;
        padding: 40px 20px;
        color: var(--text-light);
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .alerts-list, .maintenances-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .alert-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid;
    }

    .alert-danger { background: #ffebee; border-left-color: #c62828; }
    .alert-warning { background: #fff3e0; border-left-color: #ef6c00; }
    .alert-info { background: #e3f2fd; border-left-color: #1565c0; }

    .alert-content {
        flex: 1;
    }

    .alert-title {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 5px;
    }

    .vehicle-info {
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .alert-meta {
        font-size: 0.8rem;
        color: var(--text-light);
    }

    .alert-timer {
        text-align: center;
        min-width: 60px;
    }

    .days-count {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .days-label {
        font-size: 0.7rem;
        color: var(--text-light);
        text-transform: uppercase;
    }

    /* Items de maintenance */
    .maintenance-item {
        padding: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-light);
    }

    .maintenance-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }

    .vehicle-info strong {
        display: block;
        margin-bottom: 4px;
    }

    .immatriculation {
        font-size: 0.8rem;
        color: var(--text-light);
        background: white;
        padding: 2px 8px;
        border-radius: 10px;
        display: inline-block;
    }

    .maintenance-date {
        font-size: 0.85rem;
        color: var(--text-light);
        font-weight: 500;
    }

    .maintenance-description {
        font-size: 0.9rem;
        color: var(--text-dark);
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .maintenance-meta {
        display: flex;
        gap: 10px;
        font-size: 0.8rem;
    }

    .maintenance-type, .maintenance-provider {
        background: white;
        padding: 4px 8px;
        border-radius: 6px;
        color: var(--text-light);
    }

    /* Accès rapides */
    .quick-access-section {
        background: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 30px;
    }

    .quick-access-section .section-header {
        margin-bottom: 25px;
        text-align: center;
    }

    .quick-access-section .section-header h2 {
        color: var(--text-dark);
        font-weight: 600;
        margin: 0;
    }

    .quick-access-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .quick-access-card {
        display: flex;
        align-items: center;
        padding: 25px;
        background: var(--bg-light);
        border-radius: var(--radius);
        text-decoration: none;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .quick-access-card:hover {
        background: white;
        border-color: var(--primary-color);
        transform: translateY(-3px);
        text-decoration: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .card-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 20px;
        color: white;
        font-size: 1.5rem;
    }

    .card-content h4 {
        margin: 0 0 5px 0;
        color: var(--text-dark);
        font-weight: 600;
    }

    .card-content p {
        margin: 0;
        color: var(--text-light);
        font-size: 0.9rem;
    }

    /* Toast container */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1055;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .dashboard-container {
            padding: 15px;
        }

        .dashboard-header {
            flex-direction: column;
            gap: 15px;
            text-align: center;
        }

        .kpi-grid {
            grid-template-columns: 1fr;
        }

        .alerts-grid {
            grid-template-columns: 1fr;
        }

        .quick-access-grid {
            grid-template-columns: 1fr;
        }

        .kpi-card {
            padding: 20px;
        }

        .alert-card .card-body {
            padding: 20px;
        }
    }