/* Corrections CSS pour l'admin BookConnect */

/* Masquer les alertes d'erreur en haut */
.alert-warning[style*="position: fixed"] {
    display: none !important;
}

/* Corriger l'affichage des cartes de statistiques */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Corriger les boutons colorés */
.btn-primary { background-color: #0d6efd; border-color: #0d6efd; }
.btn-success { background-color: #198754; border-color: #198754; }
.btn-warning { background-color: #ffc107; border-color: #ffc107; }
.btn-danger { background-color: #dc3545; border-color: #dc3545; }
.btn-info { background-color: #0dcaf0; border-color: #0dcaf0; }

/* Corriger la sidebar */
.sidebar {
    background-color: #343a40 !important;
    min-height: 100vh;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Corriger les alertes */
.alert {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

/* Masquer les erreurs JavaScript visibles */
.console-error,
.js-error {
    display: none !important;
}

/* Corriger l'affichage des statistiques */
.stats-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Corriger les icônes manquantes */
.fa::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", sans-serif;
    font-weight: 900;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        min-height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* Corriger les problèmes de z-index */
.navbar,
.header {
    z-index: 1030;
}

.sidebar {
    z-index: 1020;
}

/* Masquer les erreurs de console dans l'interface */
#console-errors,
.error-overlay {
    display: none !important;
}

/* Améliorer la lisibilité */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* Corriger les marges */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col,
.col-md-3,
.col-md-6,
.col-md-9,
.col-md-12 {
    padding-left: 15px;
    padding-right: 15px;
}
