:root {
    --doc-sidebar-width: 280px;
    --doc-content-max-width: 900px;
}

body {
    background-color: #f8f9fa;
}

/* Fix navbar position */
.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Documentation Container */
.doc-container {
    display: flex;
    min-height: calc(100vh - 56px);
    padding-top: 56px;
    position: relative;
}

/* Sidebar Styles */
.doc-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: var(--doc-sidebar-width);
    background: #ffffff;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    z-index: 1020;
    padding: 20px 0;
}

.doc-sidebar-header {
    padding: 0 20px 15px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 15px;
}

.doc-sidebar-header h4 {
    font-size: 1.25rem;
    margin: 0;
    color: #212529;
    font-weight: 600;
}

/* Search Box */
.doc-search {
    padding: 0 20px 15px;
}

.doc-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.doc-search input:focus {
    outline: none;
    border-color: #495057;
}

/* Navigation Menu */
.doc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-nav-section {
    margin-bottom: 8px;
}

.doc-nav-section-title {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.doc-nav-section-title:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.doc-nav-section-title i.toggle-icon {
    transition: transform 0.2s;
}

.doc-nav-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.doc-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.doc-nav-section.collapsed .doc-nav-items {
    max-height: 0;
}

.doc-nav-item {
    margin: 0;
}

.doc-nav-link {
    display: block;
    padding: 8px 20px 8px 40px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.doc-nav-link:hover {
    background-color: #f8f9fa;
    color: #212529;
    border-left-color: #dee2e6;
}

.doc-nav-link.active {
    background-color: #212529;
    color: #ffffff;
    border-left-color: #495057;
    font-weight: 500;
}

/* Content Area */
.doc-content-wrapper {
    margin-left: var(--doc-sidebar-width);
    flex: 1;
    padding: 30px;
}

.doc-content {
    max-width: var(--doc-content-max-width);
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Typography */
.doc-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.doc-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-top: 40px;
    margin-bottom: 20px;
}

.doc-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #212529;
    margin-top: 30px;
    margin-bottom: 15px;
}

.doc-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #495057;
    margin-top: 25px;
    margin-bottom: 12px;
}

.doc-content p {
    line-height: 1.7;
    color: #495057;
    margin-bottom: 15px;
}

.doc-content ul, .doc-content ol {
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}

.doc-content li {
    margin-bottom: 8px;
}

/* Alert Boxes */
.doc-alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.doc-alert-info {
    background-color: #e7f3ff;
    border-left-color: #2196F3;
    color: #0d47a1;
}

.doc-alert-warning {
    background-color: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

.doc-alert-success {
    background-color: #e8f5e9;
    border-left-color: #4caf50;
    color: #1b5e20;
}

.doc-alert-danger {
    background-color: #ffebee;
    border-left-color: #f44336;
    color: #b71c1c;
}

/* Code Blocks */
.doc-code {
    background-color: #f5f5f5;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #212529;
}

code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

/* Screenshots Placeholder */
.doc-screenshot {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
}

.doc-screenshot i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

/* Step-by-Step Instructions */
.doc-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.doc-steps > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.doc-steps > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: #212529;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Collapsible Sections */
.doc-collapsible {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 20px 0;
}

.doc-collapsible-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.2s;
}

.doc-collapsible-header:hover {
    background-color: #e9ecef;
}

.doc-collapsible-header i {
    transition: transform 0.2s;
}

.doc-collapsible.collapsed .doc-collapsible-header i {
    transform: rotate(-90deg);
}

.doc-collapsible-content {
    padding: 20px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.doc-collapsible.collapsed .doc-collapsible-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Table Styles */
.doc-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.doc-content table th {
    background-color: #212529;
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.doc-content table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.doc-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Badge Styles */
.doc-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 5px;
}

.doc-badge-new {
    background-color: #4caf50;
    color: #ffffff;
}

.doc-badge-updated {
    background-color: #2196F3;
    color: #ffffff;
}

.doc-badge-important {
    background-color: #f44336;
    color: #ffffff;
}

/* Navigation Buttons */
.doc-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.doc-nav-button {
    padding: 12px 24px;
    background-color: #212529;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.doc-nav-button:hover {
    background-color: #495057;
    color: #ffffff;
}

/* Feature Grid */
.doc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.doc-feature-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.doc-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.doc-feature-card h3 {
    margin-top: 0;
    color: #212529;
    font-size: 1.2rem;
}

.doc-feature-card p {
    margin-bottom: 0;
    color: #6c757d;
}

.doc-feature-icon {
    font-size: 2rem;
    color: #495057;
    margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .doc-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .doc-sidebar.show {
        transform: translateX(0);
    }
    
    .doc-content-wrapper {
        margin-left: 0;
    }
    
    .doc-content {
        padding: 20px;
    }
    
    .doc-content h1 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .doc-sidebar,
    .doc-nav-buttons,
    .navbar {
        display: none;
    }
    
    .doc-content-wrapper {
        margin-left: 0;
    }
}
