/* public/css/app.css */

/* Variables de couleur */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Styles généraux */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f5f8fa;
}

.sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    color: #fff;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar a:hover, .sidebar a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Cartes et conteneurs */
.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 600;
}

/* Tableaux */
.table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.02);
}

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

/* Pagination */
.pagination {
    justify-content: center;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
}

/* Formulaires */
.form-label {
    font-weight: 600;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Boutons */
.btn {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Alertes */
.alert {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Tableaux de bord */
.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Animations */
.btn, .nav-link, .form-control, .badge {
    transition: all 0.3s ease;
}

/* Responsivité */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: relative;
        top: 0;
    }
}

/* Notifications */
.notification-badge {
    position: relative;
    top: -10px;
    left: -5px;
    padding: 3px 5px;
    border-radius: 50%;
    font-size: 0.5rem;
}

/* Icônes dans les boutons et les champs */
.btn i, .input-group-text i {
    margin-right: 5px;
}

/* État désactivé */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Style pour les tags */
.badge.bg-info {
    background-color: rgba(13, 202, 240, 0.8) !important;
}