/* Premium SaaS Sidebar Styling - Blue Theme (matches homepage) */

/* Left Sidebar - Homepage Blue Gradient */
.leftside-bar {
    background: linear-gradient(135deg, var(--base-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 24px !important;
    padding: 20px !important;
    color: #ffffff !important;
}

/* Right Sidebar - Homepage Blue Gradient (Matching Left Sidebar) */
.rightside-bar {
    background: linear-gradient(135deg, var(--base-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.08) !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    color: #ffffff !important;
}

/* Reset widgets inside right sidebar to blend in with Dark Theme */
.rightside-bar .user-profile-box,
.rightside-bar .popular-topics-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    color: #cbd5e1 !important;
    /* White/Light Text */
}

/* Specific text overrides for Right Sidebar widgets */
.rightside-bar h1,
.rightside-bar h2,
.rightside-bar h3,
.rightside-bar h4,
.rightside-bar h5,
.rightside-bar h6,
.rightside-bar .title,
.rightside-bar strong {
    color: #ffffff !important;
    /* Pure White Headers */
}

.rightside-bar a {
    color: #93c5fd !important;
    /* Light Blue Links */
}

/* Menu Items */
.leftside-bar .menu-item {
    padding: 12px 18px !important;
    margin: 6px 0 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    /* Force White */
}

.leftside-bar .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px) !important;
    color: #ffffff !important;
}

.leftside-bar .menu-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.leftside-bar .menu-item i {
    color: #ffffff !important;
    /* Force White Icons */
    font-size: 18px !important;
    transition: color 0.2s ease !important;
}

.leftside-bar .menu-item:hover i {
    color: #ffffff !important;
    /* White on hover */
}

/* Target both .menu-name and .text for compatibility */
.leftside-bar .menu-item .menu-name,
.leftside-bar .menu-item .text {
    font-weight: 500 !important;
    font-size: 14px !important;
    margin: 0 !important;
    color: #ffffff !important;
    /* Force White Name */
}

.leftside-bar .menu-item .menu-name.active {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Active State Background */
.leftside-bar .menu-item:has(.active) {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%) !important;
    /* Bright Blue Gradient */
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5) !important;
    color: #ffffff !important;
}

.leftside-bar .menu-item:has(.active) i {
    color: #ffffff !important;
}

/* Menu Titles */
.leftside-bar .menu-title {
    color: #64748b !important;
    /* Darker Slate */
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    margin: 24px 0 12px 0 !important;
    padding: 0 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
}

/* Dividers */
.leftside-bar .nav-menu,
.leftside-bar .latest-topics-menu,
.leftside-bar .others-menu {
    border-bottom: none !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}

/* See More Button */
.leftside-bar .show-all-tgl-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin-top: 10px !important;
    transition: all 0.2s ease !important;
}

.leftside-bar .show-all-tgl-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Scrollbar Styling for Sidebar */
.leftside-bar::-webkit-scrollbar {
    width: 5px !important;
}

.leftside-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
}

.leftside-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 3px !important;
}