/* Documentation Styles */


/* Sidebar Styles */
.sidebar-col {
    position: relative;
    margin-bottom: 1.5rem;
}

.doc-sidebar {
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f4f4f4;
    border-radius: 0px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    padding: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #f4f4f4;
    z-index: 2;
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    color: #1f273a;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-category {
    margin-bottom: 0.25rem;
}

.nav-category-header {
    width: 100%;
    padding: 0.65rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3a4459;
    transition: all 0.2s;
}

.nav-category-header:hover {
    background: #f8f9fa;
}

.nav-category-header.active {
    color: #0d6efd;
    font-weight: 600;
}

.nav-category-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.toggle-icon {
    transition: transform 0.2s;
    font-size: 0.875rem;
}

.nav-category-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

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

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

.nav-section-link {
    display: block;
    padding: 0.45rem 1.5rem 0.45rem 2.5rem;
    color: #6c747e;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-section-title-text {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #273247;
    line-height: 1.35;
}

.nav-section-link:hover .nav-section-title-text {
    color: #0d6efd;
}

.nav-section-link.active .nav-section-title-text {
    color: #0d6efd;
}

.nav-section-link:hover {
    background: #f8f9fa;
    color: #495057;
}

.nav-section-link.active {
    background: #e7f1ff;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: calc(2.5rem - 3px);
}


/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.help-card {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Content Area */
.content-col {
    padding: 0 1.5rem;
}

.doc-content-card {
    padding: 2.5rem;
    padding-top: 0;
}

.sidebar-col {
    margin-bottom: 1.5rem;
}

.doc-search-container {
    max-width: 100%;
    position: relative;
}

.doc-search-container .input-group {
    border-radius: 0;
}

.doc-search-container .input-group-text {
    border-radius: 0;
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results-dropdown.show {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.search-result-category {
    font-size: 0.875rem;
    color: #6c757d;
}

.search-result-highlight {
    background: #fff3cd;
    padding: 0 2px;
}

/* Documentation Content */
.doc-article {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.doc-article ol {
    padding-left: 1.2rem;
    margin-left: 0;
}

.doc-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

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

.doc-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.doc-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}


/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-video-btn {
    font-size: 1.25rem;
}

/* Accordion Customization */
.accordion-button {
    background: #f8f9fa;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* Related Topics */
.related-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Copy Link Button */
.copy-link-btn {
    white-space: nowrap;
}

.copy-link-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .sidebar-col {
        position: static;
        top: 0;
        align-self: stretch;
        z-index: auto;
    }

    .doc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s;
    }

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

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1049;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .mobile-toc-toggle {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 1040;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .content-col {
        padding: 0;
    }

    .doc-content-card {
        padding: 1.5rem;
    }

    .doc-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Code Blocks */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875em;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
}

/* Links in Content */

/* Links in documentation content areas (overview, steps, solutions) */
.doc-overview a,
.doc-section ol li a,
.accordion-body a {
    color: #0d6efd;  /* Bootstrap primary blue */
    text-decoration: underline;
    text-decoration-color: rgba(13, 110, 253, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.doc-overview a:hover,
.doc-section ol li a:hover,
.accordion-body a:hover {
    color: #0a58ca;  /* Darker blue on hover */
    text-decoration-color: rgba(10, 88, 202, 0.6);
}

.doc-article a:hover {
    text-decoration: none;
}

/* Feedback Widget */
.feedback-widget {
    margin-top: 1rem;
}

.feedback-btn.active {
    background: #0d6efd;
    color: white;
}

.doc-breadcrumb .breadcrumb {
    margin-bottom: 0;
    font-size: 12px;
}

/* Breadcrumb */
.doc-breadcrumb {
    background: #f4f4f4;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    margin-bottom: 0;
}

/* Loading State */
.doc-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Print Styles */
@media print {
    .doc-sidebar,
    .sidebar-overlay,
    .mobile-toc-toggle,
    .doc-search-container,
    .doc-breadcrumb,
    .feedback-widget,
    .copy-link-btn,
    .doc-footer {
        display: none !important;
    }

    .doc-article {
        box-shadow: none;
        padding: 0;
    }
}
