/* Styles personnalisés pour l'interface moderne */

/* Variables CSS */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --border-radius: 0.375rem;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Layout général */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

/* Cards améliorées */
.card {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
}

/* Tables améliorées */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badges personnalisés */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Progress bars */
.progress {
    background-color: #e9ecef;
    border-radius: var(--border-radius);
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
}

/* Boutons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
}

.btn-sm {
    font-size: 0.825rem;
}

/* Alertes */
.alert {
    border: none;
    border-radius: var(--border-radius);
}

/* Navigation active */
.nav-link.active {
    font-weight: 600;
}

/* Icônes */
.bi {
    vertical-align: -0.125em;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading states */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Montants */
.montant-positif {
    color: var(--success-color);
    font-weight: 600;
}

.montant-negatif {
    color: var(--danger-color);
    font-weight: 600;
}

.montant-zero {
    color: #6c757d;
}

/* États des cartes statistiques */
.card.bg-primary .bi,
.card.bg-success .bi,
.card.bg-info .bi,
.card.bg-warning .bi,
.card.bg-danger .bi {
    font-size: 2rem;
    opacity: 0.7;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}