:root {
    --docs-bg: #f8fafc;
    --docs-header-bg: rgba(255, 255, 255, 0.8);
    --docs-sidebar-bg: #ffffff;
    --docs-card-bg: #ffffff;
    --docs-text: #1e293b;
    --docs-text-muted: #64748b;
    --docs-primary: #315eff;
    --docs-primary-muted: rgba(49, 94, 255, 0.1);
    --docs-border: #e2e8f0;
    --docs-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --docs-sidebar-width: 280px;
}

[data-theme="dark"] {
    --docs-bg: #0f172a;
    --docs-header-bg: rgba(15, 23, 42, 0.8);
    --docs-sidebar-bg: #1e293b;
    --docs-card-bg: #1e293b;
    --docs-text: #f1f5f9;
    --docs-text-muted: #94a3b8;
    --docs-primary: #60a5fa;
    --docs-primary-muted: rgba(96, 165, 250, 0.15);
    --docs-border: #334155;
    --docs-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--docs-bg);
    color: var(--docs-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--docs-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--docs-text-muted);
}

/* Layout Structure */
.docs-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: var(--docs-sidebar-width);
    height: 100vh;
    background: var(--docs-sidebar-bg);
    border-right: 1px solid var(--docs-border);
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    padding: 2rem 1rem 0;
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.docs-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.docs-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.docs-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #475569; /* Deep Gray */
}


.docs-nav-group {
    margin-bottom: 2rem;
}

.docs-nav-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--docs-text-muted);
    letter-spacing: 0.05em;
    padding: 0 0.5rem 0.75rem;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--docs-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.docs-nav-item i {
    width: 18px;
    text-align: center;
    color: var(--docs-text-muted);
    font-size: 1rem;
}

.docs-nav-item:hover {
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
}

.docs-nav-item:hover i {
    color: var(--docs-primary);
}

.docs-nav-item.active {
    background: var(--docs-primary);
    color: #fff;
}

.docs-nav-item.active i {
    color: #fff;
}

/* Content Area */
.docs-main {
    flex: 1;
    margin-left: var(--docs-sidebar-width);
    padding: 2rem 3rem;
    width: calc(100% - var(--docs-sidebar-width));
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .docs-sidebar {
        left: -320px;
        /* Force it completely off-screen on mobile */
        width: 280px;
        max-width: 85%;
        z-index: 1050;
    }

    .docs-sidebar.open {
        left: 0;
    }

    .docs-main {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100vw;
        padding: 1.5rem 1rem;
        /* Remove overflow-x: hidden to allow sticky header to work */
    }
}

/* Header Layout Update */
.docs-header {
    height: 64px;
    background: var(--docs-header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--docs-border);
    position: sticky;
    top: 0;
    z-index: 1100;
    /* Increased to be above sidebar if needed, or at least consistently on top */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    margin: -2rem -3rem 3rem;
}

@media (max-width: 991px) {
    .docs-header {
        margin: -1.5rem -1rem 2rem;
        /* Flush with top and sides */
        padding: 0.4rem 1rem;
        /* Tighter internal padding */
        height: auto;
        min-height: 56px;
        position: sticky;
        top: 0;
        z-index: 1040;
    }
}

/* Header Navigation Links */
.docs-nav-links {
    display: flex;
    gap: 1.5rem;
    margin-right: 1.5rem;
    align-items: center;
}

.docs-header-link {
    color: var(--docs-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.docs-header-link:hover {
    color: var(--docs-primary);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Projects Dropdown */
.projects-dropdown {
    position: relative;
    display: inline-block;
}

.projects-btn {
    background: none;
    border: 1px solid var(--docs-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--docs-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.projects-btn:hover {
    background: var(--docs-bg);
}

.projects-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    width: 250px;
    box-shadow: var(--docs-shadow);
    z-index: 1001;
    overflow: hidden;
}

.projects-dropdown.show .projects-content {
    display: block;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--docs-text);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--docs-border);
    transition: background 0.2s;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item:hover {
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
}

.project-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--docs-text);
    margin-bottom: 2px;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-item {
    cursor: zoom-in;
    transition: transform 0.3s;
}

.image-item:hover {
    transform: translateY(-5px);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Code Blocks & Copy */
pre {
    position: relative;
    padding: 1.5rem;
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Page Action Buttons */
.page-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-action {
    background: var(--docs-bg);
    border: 1px solid var(--docs-border);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--docs-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    color: var(--docs-primary);
    border-color: var(--docs-primary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--docs-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: var(--docs-border);
}

.section-anchor {
    padding-top: 80px;
    margin-top: -80px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--docs-text);
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--docs-border);
    color: var(--docs-text);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--docs-text);
}

p {
    margin-bottom: 1.25rem;
    color: var(--docs-text);
    font-size: 0.95rem;
}

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.35rem;
}

.docs-card {
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--docs-shadow);
}

/* Right Sidebar - Other Projects leads */
.projects-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--docs-bg);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2015;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projects-sidebar.active {
    right: 0;
}

.projects-sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--docs-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--docs-sidebar-bg);
    position: relative;
}

.sidebar-top-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projects-sidebar-header .docs-modal-close {
    position: relative;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    line-height: 1;
    padding: 2px;
}

.sidebar-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar-logo-container img {
    max-height: 40px;
    width: auto;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="light"] .logo-dark {
    display: none;
}

.project-contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.projects-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.projects-sidebar-footer {
    padding: 0;
    border-top: 1px solid var(--docs-border);
    background: var(--docs-sidebar-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.projects-sidebar-footer .btn-submit {
    width: 100%;
    border-radius: 0;
    padding: 1.25rem;
    font-weight: 700;
    border: none;
    margin: 0;
    display: block;
}

.project-contact-form .form-group {
    margin-bottom: 1.25rem;
}

.project-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--docs-text-muted);
}

.mandatory-star {
    color: var(--docs-danger);
}

/* Image Placeholders */
.docs-image-placeholder {
    background: var(--docs-bg);
    border: 2px dashed var(--docs-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .docs-image-placeholder {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
}

.docs-image-placeholder i {
    font-size: 3rem;
    color: var(--docs-text-muted);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .docs-image-placeholder i {
        font-size: 2rem;
    }
}

.docs-image-placeholder p {
    font-size: 0.9rem;
    color: var(--docs-text-muted);
    max-width: 400px;
    margin: 0;
}

.docs-image-placeholder .path-tag {
    font-family: monospace;
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Alert Styles */
.docs-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.docs-alert i {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.docs-alert-info {
    background: rgba(49, 94, 255, 0.05);
    border-left: 4px solid var(--docs-primary);
}

.docs-alert-info i {
    color: var(--docs-primary);
}

/* Mobile Devices */
@media (max-width: 991px) {
    .docs-sidebar {
        left: calc(var(--docs-sidebar-width) * -1);
    }

    .docs-sidebar.open {
        left: 0;
    }

    .docs-main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .docs-header {
        margin: -1.5rem -1.5rem 2.5rem;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block !important;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--docs-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 950;
}

.overlay.active {
    display: block;
}

/* Content Rendering Classes */
.content-item {
    margin-bottom: 4rem;
}

.content-item:last-child {
    margin-bottom: 0;
}

/* Badges and Tags */
code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: break-word;
}

pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

h3 strong {
    color: var(--docs-primary);
}

.text-primary {
    color: var(--docs-primary) !important;
}

/* Steps UI */
.step-container {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--docs-border);
}

@media (max-width: 768px) {
    .step-container {
        padding-left: 1rem;
        margin: 1.5rem 0;
    }
}

.step-item {
    position: relative;
    padding-bottom: 2rem;
}

.step-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--docs-primary);
    border-radius: 50%;
    border: 4px solid var(--docs-card-bg);
}

.step-number {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--docs-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

/* Tags & Badges */
.doc-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.5rem;
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
}

.tag-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tag-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tag-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tag-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Search Input */
.docs-search-wrap {
    position: relative;
    margin-bottom: 1.5rem;
}

.docs-search-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 3rem;
    /* Increased padding-left for more space from icon */
    border-radius: 8px;
    border: 1px solid var(--docs-border);
    background: var(--docs-bg);
    color: var(--docs-text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.docs-search-input:focus {
    border-color: var(--docs-primary);
}

/* Sidebar Footer & App Badge */
.docs-sidebar-footer {
    padding: 1.25rem 1rem;
    background: var(--docs-sidebar-bg);
    border-top: 1px solid var(--docs-border);
    margin: auto -1rem 0;
}

.docs-app-promo {
    background: var(--docs-primary-muted);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.docs-app-promo span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--docs-text);
}

.docs-info-btn {
    background: none;
    border: none;
    color: var(--docs-primary);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.docs-info-btn:hover {
    transform: scale(1.1);
}

/* Modal */
.docs-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* Glass morphic dark background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2005;
}


.docs-modal-overlay.show {
    display: block;
}

.docs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background: var(--docs-card-bg);
    border-radius: 8px;
    /* Reduced radius */
    z-index: 2010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.docs-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 767px) {
    .docs-modal {
        top: auto;
        bottom: -100%;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        visibility: visible;
    }

    .docs-modal.show {
        bottom: 0;
        transform: none;
    }
}

.docs-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--docs-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-modal-body {
    padding: 2rem;
    max-height: 75vh;
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 80px;
    /* Space for fixed footer */
}

/* Fixed Bottom Button for Modal */
.modal-fixed-footer {
    padding: 1rem 1.5rem;
    background: var(--docs-bg);
    border-top: 1px solid var(--docs-border);
    display: flex;
    justify-content: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .projects-sidebar {
        width: 100%;
        right: -100%;
    }

    .docs-nav-links {
        display: none;
        /* Hide top links on mobile to save space */
    }
}

.docs-modal-close {
    background: none;
    border: none;
    color: var(--docs-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Feedback Section */
.docs-feedback {
    margin-top: 5rem;
    padding: 3rem 2rem;
    border-radius: 16px;
    background: var(--docs-primary-muted);
    text-align: center;
}

.feedback-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feedback-btn {
    padding: 0.6rem 2rem;
    border: 2px solid var(--docs-primary);
    border-radius: 30px;
    background: none;
    color: var(--docs-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn:hover:not(:disabled),
.feedback-btn.active {
    background: var(--docs-primary);
    color: #fff;
    border-color: var(--docs-primary);
}

.feedback-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.feedback-btn.active:disabled {
    opacity: 1;
}

.feedback-form-wrap {
    margin-top: 2rem;
    display: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    background: var(--docs-card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--docs-shadow);
}

.feedback-status-msg {
    text-align: center;
    font-weight: 600;
    color: var(--docs-primary);
    padding-top: 1.5rem;
    /* Increased top padding as requested */
    border-top: 1px dashed var(--docs-border);
    margin-top: 1.5rem !important;
}

#noSearchResults {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    min-height: 40vh;
    /* Provides vertical centering context within the sidebar */
    animation: fadeIn 0.3s ease;
}

#noSearchResults i {
    opacity: 0.3;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--docs-primary);
}

#noSearchResults p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--docs-text-muted);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.docs-alert-info {
    background: var(--docs-primary-muted);
    color: var(--docs-primary);
    border: 1px solid var(--docs-primary);
    padding-left: 1.5rem;
    /* Ensure left padding */
}

/* Issue Report Form */
.report-issue-section {
    margin-top: 6rem;
    padding: 3rem;
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 16px;
    box-shadow: var(--docs-shadow);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .report-issue-section {
        padding: 1.5rem;
        margin-top: 3rem;
    }

    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--docs-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--docs-border);
    border-radius: 10px;
    background: var(--docs-bg);
    color: var(--docs-text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--docs-primary);
    outline: none;
}

.drag-drop-zone {
    border: 2px dashed var(--docs-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--docs-bg);
    cursor: pointer;
    transition: all 0.3s;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
    border-color: var(--docs-primary);
    background: var(--docs-primary-muted);
}

.drag-drop-zone i {
    font-size: 2.5rem;
    color: var(--docs-primary);
    margin-bottom: 1rem;
    display: block;
}

.docs-img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--docs-border);
    display: block;
    margin: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.image-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.image-wrapper {
    margin: 0;
    padding: 0;
}

.btn-submit {
    background: var(--docs-primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.9;
}

#projectContactForm .btn-submit {
    width: 100%;
}

/* Margin Utilities */
.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

@media (max-width: 768px) {
    #reportIssueForm .btn-submit {
        width: 100%;
        margin: 0;
    }

    .btn-action span,
    .projects-btn span {
        display: none !important;
    }

    .btn-action,
    .projects-btn {
        padding: 0.5rem 0.6rem;
    }

    .btn-action i,
    .projects-btn i {
        margin-right: 0 !important;
        font-size: 1.1rem;
    }
}

/* Projects Dropdown Menu */
.projects-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 8px;
    box-shadow: var(--docs-shadow);
    min-width: 250px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
}

.projects-dropdown-menu.show {
    display: flex;
}

.projects-dropdown-menu .dropdown-item {
    padding: 0.6rem 1rem;
    color: var(--docs-text);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.projects-dropdown-menu .dropdown-item:hover {
    background: var(--docs-primary-muted);
}

.projects-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--docs-border);
    margin: 0.5rem 0;
}

.projects-dropdown-menu .text-primary {
    color: var(--docs-primary) !important;
    font-weight: 600;
}

/* Success Full-Screen Overlay */
.docs-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--docs-bg);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.docs-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-icon-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-branding {
    position: absolute;
    bottom: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--docs-text-muted);
}

/* Modal Overlay with Backdrop Blur */
.docs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    z-index: 2000;
    transition: all 0.3s ease;
}

.docs-modal-overlay.show {
    display: block;
}

.docs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;
    max-width: 500px;
    background: var(--docs-card-bg);
    border: 1px solid var(--docs-border);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 2010;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-modal.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.docs-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--docs-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.docs-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--docs-text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-fixed-footer {
    border-top: 1px solid var(--docs-border);
    background: var(--docs-bg);
}