/* Couleur bleue pour la sidebar - INVEST CONGO */
.app-menu {
    background-color: #2563eb !important; /* Bleu primaire */
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    box-shadow: 2px 0 10px rgba(37, 99, 235, 0.1);
}

.navbar-brand-box {
    background-color: #1e40af !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation items */
.app-menu .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    margin: 2px 10px;
    border-radius: 8px;
}

.app-menu .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(5px);
}

.app-menu .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Menu titles */
.app-menu .navbar-nav .menu-title {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-left: 20px;
}

.app-menu .navbar-nav .menu-title i {
    color: rgba(255, 255, 255, 0.5) !important;
    margin-right: 8px;
}

/* Dropdown menus */
.app-menu .menu-dropdown {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    margin: 5px 10px;
    padding: 5px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-menu .menu-dropdown .nav-link {
    padding-left: 50px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    margin: 1px 5px;
    border-radius: 6px;
}

.app-menu .menu-dropdown .nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-left: 55px !important;
}

/* Icons */
.app-menu .navbar-nav .nav-link i {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.app-menu .navbar-nav .nav-link:hover i,
.app-menu .navbar-nav .nav-link.active i {
    color: #ffffff !important;
}

/* Scrollbar styling - Amélioré pour être plus visible */
.app-menu #scrollbar {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 70px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
}

.app-menu #scrollbar::-webkit-scrollbar {
    width: 8px;
}

.app-menu #scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 5px 0;
}

.app-menu #scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.app-menu #scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-menu #scrollbar::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.7);
}

/* Vertical hover button */
#vertical-hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#vertical-hover:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Amélioration des logos */
.logo img {
    filter: brightness(1.2) contrast(1.1);
}

/* Animation d'entrée pour les éléments du menu */
.app-menu .navbar-nav .nav-item {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .app-menu {
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    }
}

/* Background pattern overlay */
.app-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.app-menu > * {
    position: relative;
    z-index: 2;
}
