/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img{
    width: 100%;
    border-radius: 11px;
    border: 5px solid #eee;
}
a{
    text-decoration: none;
    color: #8f2964;
}
h2{
    background-color: rgb(221, 214, 214);
    color: #8f2964;
    padding: 10px 20px;
    border-radius: 5px;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8fafc;
    overflow-x: hidden;
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.sidebar-title {
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-nav {
    /* padding: 20px 0; */
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.nav-link.active {
    background-color: #e9e9e9;
    color: #8f2964;
    border-right: 3px solid #8f2964;
}

.nav-text {
    flex: 1;
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.has-submenu .nav-link.expanded .arrow-icon {
    transform: rotate(90deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9fafb;
}

.submenu.expanded {
    max-height: 500px;
}

.submenu-link {
    display: block;
    padding: 8px 20px 8px 40px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.submenu-link.active {
    background-color: #e9e9e9;
    color: #8f2964;
    font-weight: 500;
}

/* Main Content Styles */
.main-content {
    margin-left: 300px;
    min-height: 100vh;
    background: #ffffff;
}

.content-container {
    padding: 40px;
    max-width: 1200px;
}

.content-section {
    margin-bottom: 60px;
    padding-top: 20px;
}

.content-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.content-section p {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.content-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.content-section li {
    margin-bottom: 8px;
    color: #6b7280;
}

/* Code Blocks */
.code-block {
    background: #1f2937;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
    position: relative;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #overview{
        padding-top: 65px;
    }
    .content-container {
        padding: 16px;
    }
    
    .content-section h1 {
        font-size: 1.75rem;
    }
}

/* Focus states for accessibility */
.nav-link:focus,
.submenu-link:focus {
    outline: 2px solid #8f2964;
    /* outline-offset: 2px; */
}
