#password_wrong{
    color: red;
}

h1{
    font-size: 32px;
}

h2{
    font-size: 22px;
}

.profile-image {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-primary {
    background-color: #001286 !important;
    border-color: #001286 !important;
}

.text-primary {
    color: #8246c4 !important;
}

.text-secondary {
    color: #53c9eb    !important;
}

.text-tertiary {
    color: #001286 !important;
}

.bg-primary {
    background-color: #001286 !important;
}

/* .bg-body-tertiary {
    background-color: #f9f9f9 !important;
} */

.bg-secondary {
    background-color: #53c9eb!important;
}

.bg-tertiary{
    background-color: #8246c4 !important;
}

.icon-bubble {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #8246c4;
    color: #fff;
    font-size: 100%; /* Ajuste la taille de l'icône */
    margin: 5% auto; /* Centre la bulle elle-même */
}

.mobile-nav {
    display: none;  /* Par défaut caché */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 5px 0;
}

.mobile-nav .nav-item {
    text-align: center;
    font-size: 0.8rem;
}

.mobile-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #003844;
    padding: 0.5rem;
}

.mobile-nav .nav-link.active {
    color: var(--bs-primary);
}

.mobile-nav i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Important: Modification des media queries */
@media (max-width: 991.98px) {
    .mobile-nav {
        display: block !important; /* Forcer l'affichage */
    }
    
    .main-menu-items {
        display: none !important; /* Forcer le masquage */
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* S'assurer que le menu mobile est caché sur desktop */
@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 576px) {

}

/* Design Pop-up */
.popup {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    background-color: #fff;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* ✅ plus haut que la navbar Bootstrap */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


.popup.open {
    transform: translateX(0);
}

.popup-header {
    position: relative;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.popup-header .close {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: #000;
}

.popup-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.popup-footer {
    padding: 16px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .popup {
        width: 100%; /* Full width on mobile */
        box-shadow: none;
    }
}


/* Style pour la sidebar fixe */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 200px;
    z-index: 1040;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sidebar-brand {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-brand img {
    max-width: 100%;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-nav .nav-item {
    margin: 0;
}

.sidebar-nav .nav-link {
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
}

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

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

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

/* Bouton fermer la sidebar (mobile) */
.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1050;
    padding: 5px 10px;
    display: none;
}

.sidebar-close:hover {
    opacity: 0.7;
}

/* Overlay pour le menu mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Barre supérieure pour le profil */
.navbar.fixed-top {
    left: 200px;
    width: calc(100% - 200px);
    z-index: 1020;
    padding: 0.5rem 1rem;
}

/* Contenu principal ajusté */
.main-content {
    margin-left: 200px;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    background-color: #f8f9fa;
}

/* Footer ajusté */
footer {
    margin-left: 200px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* Scrollbar personnalisée pour la sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* ==================== RESPONSIVE MOBILE ==================== */
@media (max-width: 991.98px) {
    /* Sidebar cachée par défaut sur mobile */
    .sidebar {
        transform: translateX(-100%);
        z-index: 1040;
    }
    
    /* Sidebar visible quand active */
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Bouton fermer visible sur mobile */
    .sidebar-close {
        display: block;
    }
    
    /* Navbar pleine largeur sur mobile */
    .navbar.fixed-top {
        left: 0;
        width: 100%;
    }
    
    /* Contenu sans marge gauche sur mobile */
    .main-content {
        margin-left: 0;
    }
    
    /* Footer sans marge sur mobile */
    footer {
        margin-left: 0;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 768px) {
    .navbar.fixed-top {
        padding: 0.5rem 0.75rem;
    }
    
    .main-content {
        padding: 0.5rem !important;
    }
    
    .main-content .p-4 {
        padding: 1rem !important;
    }
}

/* Petits mobiles */
@media (max-width: 576px) {
    .sidebar {
        width: 280px;
        max-width: 85vw;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .d-flex.justify-content-between > div:last-child {
        margin-top: 1rem;
        width: 100%;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}

/* Éviter le scroll du body quand le menu mobile est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Animation smooth pour les transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

.sidebar,
.sidebar-overlay {
    will-change: transform, opacity;
}

/*Homepage Scroll Infos Facture*/ 
.scrollable-content {
  overflow-y: auto;
  max-height: 300px; /* ou une hauteur adaptée à ton design */
  padding-right: 5px; /* pour éviter que la scrollbar cache du texte */
}
