/* 
 * Feuille de styles pour l'application de gestion de l'école de musique 
 * Auteur: Claude
 */

/* Styles généraux */
body {
    background-color: #f5f7fa;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* En-tête et barre de navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Cartes et conteneurs */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 15px 20px;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.card-body {
    padding: 20px;
}

/* Tableaux */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f5f7fa;
}

.table-hover tbody tr:hover {
    background-color: #f5f9ff;
}

/* Pagination DataTables */
.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-link:hover {
    color: #024dbc;
}

/* Formulaires */
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 8px 12px;
}

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

label.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

/* Boutons */
.btn {
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 500;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Alertes */
.alert {
    border-radius: 4px;
    border: none;
}

/* Footer */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header .btn {
        margin-top: 10px;
    }
    
    .facture-info {
        flex-direction: column;
    }
    
    .facture-info-item {
        margin-bottom: 20px;
    }
}

/* Personnalisation de Select2 */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #ddd;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding-top: 4px;
}

/* Effet hover sur les cartes du tableau de bord */
.card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-warning {
    transition: all 0.3s ease;
}

.card.bg-primary:hover, .card.bg-success:hover, .card.bg-info:hover, .card.bg-warning:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Styles pour la facture */
.facture-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

