/* 
   --------------------------------------------------
   CUSTOM SIDEBAR STYLING - VESTURE CRM
   --------------------------------------------------
*/

/* 1. Sidebar Background Gradient */
.main-sidebar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* 2. Brand Logo Area */
.brand-link {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.brand-link .brand-text {
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    color: #e2e8f0 !important;
}

/* 3. Common Menu Item Styling */
.nav-sidebar>.nav-item {
    margin-bottom: 2px;
}

.nav-sidebar .nav-link {
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    margin: 4px 8px !important;
    width: auto !important;
}

/* 4. Active State (Glassmorphism / Glow) */
.nav-sidebar>.nav-item>.nav-link.active {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Submenu Active State */
.nav-treeview>.nav-item>.nav-link.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 500;
}

/* 5. Hover State */
.nav-sidebar .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px);
    color: #f1f5f9 !important;
}

/* 6. Headers */
.nav-header {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    padding-left: 20px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b !important;
    font-weight: 700;
}

/* 7. Icons */
.nav-sidebar .nav-icon {
    font-size: 1.1rem;
    margin-right: 10px;
    opacity: 0.9;
    width: 20px;
    text-align: center;
}

/* 8. Scrollbar Customization */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}