/* ========================================
   Help Documentation Styles
   ======================================== */

.docs-wrapper {
    background-color: #fff;
    min-height: 80vh;
    padding-top: 120px; /* Clear the absolute-positioned navbar */
    padding-bottom: 3rem;
}

/* ---- Sidebar ---- */

.docs-sidebar {
    border-right: 1px solid #e9ecef;
    padding-top: 1rem;
}

.docs-sidebar-inner {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-bottom: 2rem;
}

.docs-sidebar-section {
    margin-bottom: 1.25rem;
}

.docs-sidebar-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 0.25rem 1rem;
    margin-bottom: 0.25rem;
}

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

.docs-sidebar-nav li a {
    display: block;
    padding: 0.3rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.docs-sidebar-nav li a:hover {
    color: #212529;
    background-color: #f8f9fa;
    border-left-color: #dee2e6;
}

.docs-sidebar-nav li.active a {
    color: #FFC107;
    font-weight: 600;
    border-left-color: #FFC107;
    background-color: rgba(255, 193, 7, 0.05);
}

/* ---- Mobile sidebar ---- */

.docs-mobile-header {
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.docs-sidebar-toggle {
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

/* ---- Main content ---- */

.docs-content {
    padding: 1rem 2rem 3rem 2.5rem;
}

.docs-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.docs-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.docs-divider {
    margin: 1.25rem 0 1.5rem;
    border-color: #e9ecef;
}

.docs-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.docs-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

.docs-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.docs-body p {
    margin-bottom: 1rem;
}

.docs-body ul, .docs-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs-body li {
    margin-bottom: 0.35rem;
}

.docs-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.docs-body code {
    background-color: #f1f3f5;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

.docs-body pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.docs-body pre code {
    background: none;
    padding: 0;
    color: #212529;
}

.docs-body blockquote {
    border-left: 4px solid #FFC107;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background-color: #fffbeb;
    border-radius: 0 4px 4px 0;
}

.docs-body blockquote p:last-child {
    margin-bottom: 0;
}

.docs-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.docs-body table th,
.docs-body table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.docs-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Screenshot placeholders */
.docs-body img[src*="screenshots/"] {
    display: block;
    max-width: 360px;
    margin: 1.5rem auto;
}

/* ---- Prev / Next Pager ---- */

.docs-pager {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    gap: 1rem;
}

.docs-pager-prev,
.docs-pager-next {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.15s ease;
    max-width: 48%;
}

.docs-pager-prev:hover,
.docs-pager-next:hover {
    border-color: #FFC107;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.docs-pager-next {
    text-align: right;
    margin-left: auto;
}

.docs-pager-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.docs-pager-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #FFC107;
}

/* ---- Responsive ---- */

@media (max-width: 767.98px) {
    .docs-content {
        padding: 1rem 0.5rem 2rem;
    }

    .docs-title {
        font-size: 1.6rem;
    }

    .docs-sidebar-inner {
        position: static;
        max-height: none;
        padding-bottom: 1rem;
    }

    .docs-pager {
        flex-direction: column;
    }

    .docs-pager-prev,
    .docs-pager-next {
        max-width: 100%;
    }

    .docs-pager-next {
        text-align: left;
    }
}
