/* Modern Sidebar Override - High Specificity */
body .modern-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1000 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3) !important;
}

body .modern-sidebar.collapsed {
    width: 80px !important;
}

body .modern-sidebar.collapsed .nav-text,
body .modern-sidebar.collapsed .logo-text,
body .modern-sidebar.collapsed .nav-section-title,
body .modern-sidebar.collapsed .user-info,
body .modern-sidebar.collapsed .theme-text {
    opacity: 0 !important;
    transform: translateX(-10px) !important;
}

body .sidebar-header {
    padding: 1.5rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body .logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

body .logo-icon {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    flex-shrink: 0 !important;
}

body .logo-text h2 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
}

body .nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    margin: 0 0.5rem !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

body .nav-item:hover {
    color: white !important;
    transform: translateX(4px) !important;
}

body .nav-item.active {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2)) !important;
    color: white !important;
    border: 1px solid rgba(0, 123, 255, 0.3) !important;
}

/* Light theme overrides */
body.light-theme .modern-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-right-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .logo-text h2,
body.light-theme .nav-text,
body.light-theme .user-name {
    color: #2c3e50 !important;
}

body.light-theme .nav-item {
    color: rgba(44, 62, 80, 0.7) !important;
}

body.light-theme .nav-item:hover,
body.light-theme .nav-item.active {
    color: #2c3e50 !important;
}

