:root {
    --primary-color: #3b7ddd;
    --sidebar-width: 280px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --content-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--content-bg);
    color: #333;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--sidebar-bg);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-header p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: var(--sidebar-hover);
    color: white;
    padding-left: 2rem;
}

.nav-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Scroll spy active state for submenu items */
.nav-submenu a.active-scroll {
    background-color: rgba(59, 125, 221, 0.3);
    color: white !important;
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-submenu a.active-scroll:hover {
    background-color: rgba(59, 125, 221, 0.4);
}

/* Nested submenu active state */
.nav-submenu .nav-submenu a.active-scroll {
    background-color: rgba(59, 125, 221, 0.4);
    border-left: 3px solid #fff;
}

/* Smooth transitions for all nav links */
.nav-submenu a {
    transition: all 0.2s ease;
}

.nav-menu a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.nav-submenu {
    list-style: none;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-submenu.expanded {
    max-height: 1000px;
}

.nav-submenu li a {
    padding-left: 3rem;
    font-size: 0.9rem;
}

.nav-submenu li a:hover {
    padding-left: 3.5rem;
}

.nav-submenu li {
    position: relative;
}

.nav-submenu .nav-submenu {
    list-style: none;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 0;
}

.nav-submenu .nav-submenu.expanded {
    max-height: 1000px;
}

.nav-submenu .nav-submenu li a {
    padding-left: 4.5rem;
    font-size: 0.85rem;
}

.nav-submenu .nav-submenu li a:hover {
    padding-left: 5rem;
}

.nav-submenu li.has-submenu > a::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    float: right;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.nav-submenu li.has-submenu.expanded > a::after {
    transform: rotate(90deg);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

.content-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-header p {
    color: #666;
    margin: 0;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.section-header:hover {
    color: var(--primary-color);
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    transition: transform 0.3s ease;
}

.section-header.expanded i {
    transform: rotate(90deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.expanded {
    max-height: 5000px;
}

.feature-card {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.screenshot-placeholder {
    background: #e9ecef;
    border: 2px dashed #adb5bd;
    padding: 3rem;
    text-align: center;
    border-radius: 4px;
    margin-top: 1rem;
    color: #6c757d;
}

.screenshot-img {
    width: 100%;
    max-width: 800px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-img:not([src]) {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 4px;
        cursor: pointer;
    }
}

.mobile-toggle {
    display: none;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
