/* Sidebar styles for UTCP docs */

/* Gradient text for sidebar title */
.gradient-text {
    background: linear-gradient(135deg, #60A5FA, #A78BFA, #F472B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar for sidebar */
#docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

#docs-sidebar::-webkit-scrollbar-track {
    background: #374151;
}

#docs-sidebar::-webkit-scrollbar-thumb {
    background: #6B7280;
    border-radius: 3px;
}

#docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Smooth transitions for sidebar items */
#docs-sidebar a {
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

#docs-sidebar a:hover {
    border-left-color: #60A5FA;
    transform: translateX(4px);
}

#docs-sidebar a.active {
    border-left-color: #3B82F6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}

/* Mobile overlay */
#sidebar-overlay {
    backdrop-filter: blur(2px);
}

/* Toggle button styling */
#sidebar-toggle {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

#sidebar-toggle:hover {
    background-color: #4B5563;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    body {
        margin-left: 0 !important;
    }
    
    main {
        margin-left: 0 !important;
    }
}

/* Ensure content doesn't overlap with sidebar */
@media (min-width: 1025px) {
    body {
        padding-left: 256px;
    }
    
    main {
        margin-left: 0 !important;
    }
}

/* Section dividers */
#docs-sidebar nav > div:not(:last-child) {
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    padding-bottom: 1rem;
}

/* Icon spacing for future icons */
#docs-sidebar .fa,
#docs-sidebar .fas,
#docs-sidebar .far {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Highlight current section */
#docs-sidebar h3 {
    position: relative;
}

#docs-sidebar h3::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    border-radius: 2px;
    opacity: 0.7;
}

/* Smooth page transitions */
body {
    transition: margin-left 0.3s ease-in-out;
}

main {
    transition: margin-left 0.3s ease-in-out;
}

/* Focus styles for accessibility */
#docs-sidebar a:focus {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

#sidebar-toggle:focus {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}