/* =============================================
   PROPOSE GROUP - OVERRIDES SB-ADMIN (V2)
   ============================================= */

/* --- 1. SIDEBAR : LE DÉGRADÉ VIBRANT (Bleu > Teal) --- */
#accordionSidebar,
#accordionSidebar.bg-gradient-primary,
#accordionSidebar.sidebar,
#accordionSidebar::before {
    background: linear-gradient(160deg, #004AAD 0%, #00C2CB 100%) !important;
    background-image: linear-gradient(160deg, #004AAD 0%, #00C2CB 100%) !important;
    background-color: #004AAD !important;
    box-shadow: 4px 0 24px rgba(0, 74, 173, 0.2) !important;
}

/* Liens et icônes en blanc */
#accordionSidebar .nav-link,
#accordionSidebar .nav-link .fas,
#accordionSidebar .nav-link .fa {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.2s;
}

/* Hover & Active : Effet Glassmorphism */
#accordionSidebar .nav-link:hover,
#accordionSidebar .nav-link:focus,
#accordionSidebar .nav-item.active > .nav-link,
#accordionSidebar .nav-item .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    font-weight: 700;
}

/* --- 2. SOUS-MENUS --- */
#accordionSidebar .collapse-inner {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

#accordionSidebar .collapse-inner .collapse-item {
    color: #444444 !important;
    font-weight: 500;
}

#accordionSidebar .collapse-inner .collapse-item:hover,
#accordionSidebar .collapse-inner .collapse-item.active {
    background-color: #F3F4F6 !important;
    color: #004AAD !important;
    border-radius: 8px;
}

/* --- 3. BRANDING --- */
#accordionSidebar .sidebar-brand-text {
    color: #ffffff !important;
    font-family: 'Manrope', 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-transform: none !important;
    font-size: 1.1rem !important;
    letter-spacing: -0.5px;
}

#accordionSidebar .sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.15) !important;
}

.sidebar-heading {
    text-align: left !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 10px;
}

/* --- 4. TOPBAR : FOND BLANC & TOUCHES ORANGE --- */
.navbar.topbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border-bottom: 1px solid #e3e6f0;
}

/* Textes liens Topbar */
.navbar.topbar .nav-link,
.navbar.topbar .topbar-divider,
.navbar.topbar .nav-link .text-gray-600,
.navbar.topbar .nav-link .small {
    color: #444444 !important;
    font-weight: 600;
}

.navbar.topbar .topbar-divider {
    border-right: 1px solid #e3e6f0 !important;
}

/* --- INJECTION DE L'ORANGE ICI (SANS TOUCHER HTML) --- */

/* 1. Bouton Recherche : Devient Orange (Action) */
.navbar.topbar .btn.btn-primary {
    background-color: #FF6B35 !important; /* Orange Corail */
    border-color: #FF6B35 !important;
    color: #ffffff !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
}
.navbar.topbar .btn.btn-primary:hover {
    background-color: #E85A2A !important; /* Orange plus foncé */
}

/* 2. Menu Burger Mobile : Devient Orange */
#sidebarToggleTop {
    color: #FF6B35 !important;
}
#sidebarToggleTop:hover {
    background-color: rgba(255, 107, 53, 0.1) !important;
}

/* 3. Badges de Notification (Compteurs) : Deviennent Orange */
/* On cible badge-danger et badge-counter pour écraser le rouge du template */
.navbar.topbar .badge-danger, 
.navbar.topbar .badge-counter {
    background-color: #FF6B35 !important;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.65rem;
    padding: 3px 6px;
}

/* 4. Input Recherche : Focus Orange subtil */
.navbar.topbar .navbar-search .form-control {
    background-color: #F8F9FC !important;
    color: #333333 !important;
    border: 1px solid #e3e6f0 !important;
}
.navbar.topbar .navbar-search .form-control::placeholder {
    color: #aaa !important;
}
.navbar.topbar .navbar-search .form-control:focus {
    background-color: #fff !important;
    border-color: #FF6B35 !important; /* Bordure Orange */
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15) !important;
}

/* 5. Headers des Dropdowns (Alerts Center) : Deviennent Orange */
.dropdown-header {
    background-color: #fff !important;
    color: #FF6B35 !important; /* Texte Orange */
    border: none !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* =============================================
   PROPOSE CAMPUS - STYLE "OPENLAB" (IMAGE 2)
   ============================================= */

.sidebar-brand {
    height: 5rem !important;
    padding: 1.5rem 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.sidebar-brand:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* 2. LE CONTENEUR DE L'IMAGE */
.sidebar-brand-icon {
    /* ON ENLÈVE TOUT LE FOND ET LES BORDURES ICI */
    background: transparent; /* Plus de fond blanc/gris */
    border: none;            /* Plus de bordure */
    box-shadow: none;        /* Plus d'ombre carrée */
    backdrop-filter: none;
    
    /* Dimensions */
    width: 50px;             /* Taille de ton logo */
    height: 50px;
    
    /* Centrage */
    display: flex;
    align-items: center;
    justify-content: center;
    
    padding: 0; 
    overflow: visible; /* Important pour que ça ne coupe pas si ça dépasse un peu */
    color: #fff; 
}

/* L'IMAGE DU LOGO */
.sidebar-brand-icon img {
    width: 100px;
    height: auto;
    object-fit: contain; 
    
    /* AJOUTE CETTE LIGNE : 1.2 = 120%, 1.5 = 150% etc. */
    transform: scale(1.4); 
    
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 3. LE TEXTE (Inchangé) */
.sidebar-brand-text {
    font-family: 'Manrope', 'Poppins', sans-serif !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.5px !important;
    text-transform: none !important;
    position: relative;
    margin-left: 10px !important; /* Ajusté légèrement */
}

/* 4. POINT ORANGE (Inchangé) */
.sidebar-brand-text::after {
    content: '.';
    color: #FF6B35;
    font-size: 1.5rem;
    line-height: 0;
    position: relative;
    top: 2px;
    margin-left: 1px;
}



