/* Clean Documentation Theme Styles */
.docs-page {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
}

.docs-header-wrapper {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

.docs-branding {
    background: #fff;
}

.docs-logo-wrapper {
    display: flex;
    align-items: center;
}

.docs-sidebar-toggler {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-sidebar-toggler:hover {
    background: #f3f4f6;
    border-radius: 4px;
}

.docs-sidebar-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.2s ease;
}

.site-logo .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #111827;
}

.logo-icon {
    width: 32px !important;
    height: auto;
    color: #6b7280;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 12px;
    color: #111827;
}

.text-alt {
    color: #6b7280;
    font-weight: 500;
}

.docs-top-utilities {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.docs-header-wrapper .row {
    max-width: 100%;
    margin: 0;
}

.docs-header-wrapper .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.doc-nav-link {
    color: #6b7280;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.doc-nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.doc-nav-link-active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

/* Clean button styling */
.btn-outline-primary {
    border: 1px solid #d1d5db;
    color: #374151;
    background: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    transform: none;
    box-shadow: none;
}

/* Proper sidebar layout */
.docs-wrapper {
    display: flex;
    min-height: calc(100vh - 140px);
    margin-top: 0;
    padding: 0;
    align-items: flex-start;
    position: relative;
}

.docs-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    top: 140px;
    left: 0;
    height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: none;
    flex-shrink: 0;
}

.docs-content {
    flex: 1;
    padding: 2rem;
    background: #fff;
    margin-left: 280px;
    margin-right: 0;
    max-width: calc(100% - 280px);
    min-height: calc(100vh - 140px);
    width: calc(100% - 280px);
}

.docs-content .container {
    max-width: 900px;
    padding: 0 1rem;
}

.docs-nav {
    padding: 1rem 0;
}

.docs-nav .section-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-nav .nav-item {
    margin-bottom: 1px;
    width: 100%;
    display: block;
}

.docs-nav .nav-link {
    color: #374151 !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-left: 3px solid transparent;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.docs-nav .nav-link:hover {
    background: #f9fafb !important;
    color: #111827 !important;
    border-left-color: #d1d5db;
}

.docs-nav .nav-link.active {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-left-color: #6b7280;
    font-weight: 600;
}

.docs-nav .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 0.9rem;
    color: #6b7280;
}

.docs-nav .section-title {
    font-weight: 600;
    color: #111827 !important;
    padding: 16px 20px 12px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    margin-top: 8px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.docs-nav .section-title:first-child {
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
}

.docs-nav .section-title i {
    margin-right: 10px;
    color: #6b7280 !important;
    font-size: 0.9rem;
}

/* Nested navigation items */
.docs-nav .nav-item:not(.section-title) + .nav-item:not(.section-title) .nav-link {
    padding-left: 35px;
}

/* Search box styling */
.top-search-box {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.docs-article {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.docs-article h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.docs-article h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-article h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-article .row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.docs-article .row:first-child {
    margin-top: 1rem;
}

.docs-article pre {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.docs-article .bg-dark {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.docs-header {
    margin-bottom: 2rem;
}

.docs-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.docs-intro p,
.docs-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.docs-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.docs-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: #4a5568;
}

.docs-section li strong {
    color: #2d3748;
}

.table {
    border: 1px solid #e2e8f0;
}

.table-hover tbody tr:hover {
    background-color: #f7fafc;
}

.table-dark {
    background-color: #4a5568;
}

.text-danger {
    color: #e53e3e !important;
}

pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Clean Base URL styling */
.alert {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.alert h5 {
    color: #111827;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.alert h5 i {
    color: #6b7280;
    margin-right: 0.5rem;
}

.alert code {
    background: #ffffff;
    color: #111827;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
}

.search-form {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    padding-right: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
}

.docs-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
    background: #ffffff;
    margin-left: 280px;
    width: calc(100% - 280px);
    box-sizing: border-box;
}

.docs-footer .copyright {
    font-size: 0.9rem;
}

.docs-footer a {
    color: #6b7280;
    text-decoration: none;
}

.docs-footer a:hover {
    color: #111827;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .docs-wrapper {
        flex-direction: column;
        padding: 0;
        align-items: stretch;
    }

    .docs-sidebar {
        width: 100%;
        position: fixed;
        top: 140px;
        left: -100%;
        height: calc(100vh - 140px);
        background: #ffffff;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        overflow-y: auto;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .docs-sidebar.show {
        left: 0;
    }

    .docs-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
        min-height: auto;
        width: 100%;
    }

    .docs-footer {
        margin-left: 0;
        width: 100%;
    }

    .docs-sidebar-toggler {
        display: block;
    }

    /* Overlay for mobile sidebar */
    .docs-sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .docs-sidebar.show::before {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1rem;
    }
    
    .docs-heading {
        font-size: 2rem;
        max-width: 100%;
    }
    
    .docs-content .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .section-heading {
        font-size: 1.25rem;
    }
    
    .docs-top-utilities .doc-nav-link-box {
        display: none !important;
    }
    
    .docs-top-utilities .btn-outline-primary {
        display: none !important;
    }
}

/* Hide sidebar toggler on desktop */
@media (min-width: 992px) {
    .docs-sidebar-toggler {
        display: none;
    }
}
