body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styles */
.doc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    padding: 2rem 0;
    z-index: 1040;
    transition: transform 0.3s ease-in-out;
}

/* Mobile: Hide sidebar by default */
@media (max-width: 991px) {
    .doc-sidebar {
        transform: translateX(-100%);
    }

    .doc-sidebar.show {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
}

/* Content Area */
.doc-content {
    margin-left: 280px;
    padding: 2rem 1.5rem;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .doc-content {
        margin-left: 0;
        padding: 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .doc-content {
        padding: 2rem;
    }
}

@media (min-width: 1200px) {
    .doc-content {
        padding: 3rem;
        max-width: 900px;
    }
}

.header {
    display: block;
    background: #eee;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: left;
    position: fixed;
    top: 0rem;
    left: 0rem;
    width: 100%;
    padding-left: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: #667eea;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.doc-content {
    padding-top: 5rem;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

}

.doc-logo {
    padding: 0 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

@media (max-width: 575px) {
    .doc-logo {
        font-size: 1.25rem;
        padding: 0 1rem 1.5rem;
    }
}

.doc-menu-header {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #6c757d;
    margin-top: 1.5rem;
}

@media (max-width: 575px) {
    .doc-menu-header {
        padding: 0.5rem 1rem;
    }
}

.doc-menu-item {
    display: block;
    padding: 0.65rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

@media (max-width: 575px) {
    .doc-menu-item {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

.doc-menu-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.doc-menu-item.active {
    background: #f0f3ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

/* Typography - Responsive */
.doc-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .doc-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .doc-content h1 {
        font-size: 1.75rem;
    }
}

.doc-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .doc-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
}

.doc-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .doc-content h3 {
        font-size: 1.125rem;
    }
}

/* Code Blocks - Responsive */
.code-block {
    background: #1e1e1e;
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .code-block {
        padding: 1rem;
        font-size: 0.8125rem;
    }
}

.code-block code {
    color: #fff;
    font-family: 'Courier New', monospace;
    word-break: break-word;
}

.param-tag {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
}

@media (max-width: 575px) {
    .param-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

.alert-info {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
}

/* Tables - Responsive */
@media (max-width: 767px) {
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Close Button on Sidebar (Mobile) */
.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    display: none;
    cursor: pointer;
}

@media (max-width: 991px) {
    .sidebar-close {
        display: block;
    }
}