/* Desktop Sidebar Styles */
.desktop-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    overflow-y: auto;
    overflow-x: hidden;
}

.desktop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.desktop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.desktop-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Sidebar Navigation Enhancements */
.sidebar-nav-item {
    border: 1px solid transparent;
}

.sidebar-nav-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.sidebar-nav-item.active {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* Icon Glow Effects */
.sidebar-nav-icon {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-nav-item:hover .sidebar-nav-icon {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

/* Badge Animation */
.sidebar-nav-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .8;
        transform: scale(1.05);
    }
}

/* Responsive Adjustments */
@media (min-width: 800px) {
    .main-content-desktop {
        margin-right: 300px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Adjust navbar for sidebar */
    nav.fixed {
        right: 280px;
        left: 0;
    }
}

@media (min-width: 800px) {
    .desktop-sidebar {
        width: 320px;
    }

    .main-content-desktop {
        margin-right: 340px;
    }

    nav.fixed {
        right: 320px;
    }
}

@media (min-width: 800px) {
    .desktop-sidebar {
        width: 360px;
    }

    .main-content-desktop {
        margin-right: 380px;
    }

    nav.fixed {
        right: 360px;
    }
}

@media (max-width: 800px) {
    nav.fixed {
        right: 0;
        left: 0;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .desktop-sidebar {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
        backdrop-filter: blur(25px);
    }
}

/* Accessibility Improvements */
.sidebar-nav-item:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.sidebar-nav-item:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.7);
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Ensure content doesn't overlap */
.main-content-desktop {
    transition: margin-right 0.3s ease;
    min-height: calc(100vh - 4rem);
}

/* Navbar adjustments */
nav.fixed {
    transition: right 0.3s ease;
    z-index: 60;
}