/* =====================================================
   Gestion HSE - AED : Styles personnalisés
   ===================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    font-size: 0.9rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Cards dashboard */
.stat-card {
    border-left: 4px solid;
    border-radius: 0.5rem;
    transition: transform 0.15s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-card.blue { border-left-color: #0d6efd; }
.stat-card.green { border-left-color: #198754; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-card.red { border-left-color: #dc3545; }
.stat-card.purple { border-left-color: #6f42c1; }

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* Badges contrat */
.badge-cdd { background-color: #fd7e14; }
.badge-cdi { background-color: #198754; }

/* Statuts demandes */
.badge-en_attente { background-color: #ffc107; color: #212529; }
.badge-acceptee { background-color: #198754; }
.badge-refusee { background-color: #dc3545; }
.badge-payee { background-color: #0d6efd; }

/* Tables */
.table th {
    background-color: #e9ecef;
    font-size: 0.85rem;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}

/* Form styles */
.form-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.form-section h5 {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Ventilation table */
.ventilation-input {
    width: 80px;
    text-align: center;
}

/* Print styles */
@media print {
    .navbar, footer, .no-print, .btn { display: none !important; }
    .container-fluid { padding: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card .stat-number { font-size: 1.5rem; }
    .table { font-size: 0.8rem; }
}

/* File preview */
.file-preview {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

/* Highlight absent */
.aed-absent {
    background-color: #fff3cd !important;
}
