/* /var/www/omertae/SRP_app/app/static/css/custom.css */

/* --- GENERAL LAYOUT --- */
body {
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

#wrapper {
    display: flex;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 15rem; /* Largeur fixe de la sidebar */
    margin-left: -15rem;
    transition: margin .25s ease-out;
    background-color: #212529; /* Couleur de fond sombre pour la sidebar */
}

#page-content-wrapper {
    min-width: 100vw;
    width: 100%;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Styles responsives pour la sidebar */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* --- SIDEBAR STYLING --- */

/* Titre de la sidebar */
#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
}
#sidebar-wrapper .sidebar-heading a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Petits titres de section */
.sidebar-heading-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Liens de navigation dans la sidebar */
#sidebar-wrapper .list-group-item {
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7); /* Couleur du texte des liens */
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

#sidebar-wrapper .list-group-item:hover,
#sidebar-wrapper .list-group-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Lien actif dans la sidebar */
#sidebar-wrapper .list-group-item.active {
    background-color: #0d6efd; /* Bleu Bootstrap par défaut */
    color: white;
    font-weight: bold;
}

#sidebar-wrapper .list-group-item i.fa-fw {
    width: 1.25em; /* Assure un alignement parfait des icônes */
}

/* --- DASHBOARD CARDS BORDERS --- */
/* Styles pour les bordures colorées des cartes KPI */
.card.border-left-primary { border-left: 0.25rem solid #4e73df!important; }
.card.border-left-success { border-left: 0.25rem solid #1cc88a!important; }
.card.border-left-info { border-left: 0.25rem solid #36b9cc!important; }
.card.border-left-warning { border-left: 0.25rem solid #f6c23e!important; }

.text-xs { font-size: .7rem; }
