﻿.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 7rem auto 0;
    padding: 2rem;
    min-height: calc(100vh - 7rem);
    overflow-x: hidden;
}

.docs-sidebar {
    position: sticky;
    height: calc(100vh - 9rem);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    background: var(--dark);
    z-index: 100;
}

    .docs-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .docs-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .docs-sidebar::-webkit-scrollbar-thumb {
        background-color: var(--accent);
        border-radius: 3px;
    }

.docs-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-x: hidden;
}

.docs-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .docs-header h1 {
        font-size: 2.5rem;
        background: linear-gradient(to right, #fff, var(--accent));
        -webkit-background-clip: text;
        color: transparent;
        margin-bottom: 1rem;
    }

    .docs-header p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.1rem;
        line-height: 1.6;
    }

.docs-section {
    margin-bottom: 3rem;
    width: 100%;
    overflow-x: hidden;
}

    .docs-section h2 {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 1rem;
    }

    .docs-section h3 {
        font-size: 1.4rem;
        color: white;
        margin: 1.5rem 0 1rem;
    }

    .docs-section p {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .docs-section code {
        background: rgba(0, 0, 0, 0.3);
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        font-family: Consolas, "Courier New", monospace;
        font-size: 0.9em;
        color: var(--accent);
    }

.code-block {
    background: #000;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

    .code-block pre {
        color: #22d3ee;
        white-space: pre-wrap;
        word-wrap: break-word;
        min-width: max-content;
        font-family: Consolas, "Courier New", monospace;
    }

/* Rich Content Styles */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

    .feature-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.8);
    }

        .feature-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.5rem;
            width: 0.5rem;
            height: 0.5rem;
            background: var(--accent);
            border-radius: 50%;
        }

.feature-list-2 li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

    .feature-list-2 li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.5rem;
        width: 0.5rem;
        height: 0.5rem;
        background: var(--accent);
        border-radius: 50%;
        visibility: hidden;
    }

.image-preview {
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
}

    .image-preview img {
        width: 100%;
        height: auto;
        display: block;
    }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.info-box {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #ddd;
}

.warning-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

    .steps-list li {
        counter-increment: steps;
        position: relative;
        padding: 1rem 1rem 1rem 3rem;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        color: rgba(255, 255, 255, 0.8);
    }

        .steps-list li::before {
            content: counter(steps);
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 1.5rem;
            height: 1.5rem;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.875rem;
            font-weight: 600;
            color: white;
        }

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .docs-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .docs-container {
        grid-template-columns: 1fr;
        margin-top: 5rem;
        padding: 1rem;
        width: 100%;
    }

    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark);
        z-index: 1000;
        padding: 2rem 1rem;
        height: 100vh;
        max-height: 100vh;
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

        .docs-sidebar.show {
            transform: translateX(0);
        }

    .docs-content {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }

    .docs-header h1 {
        font-size: 2rem;
    }

    .docs-section h2 {
        font-size: 1.5rem;
    }

    .docs-section h3 {
        font-size: 1.25rem;
    }

    .code-block {
        margin: 1rem 0;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .steps-list li {
        padding: 1rem 1rem 1rem 2.5rem;
    }

        .steps-list li::before {
            left: 0.75rem;
            width: 1.25rem;
            height: 1.25rem;
            font-size: 0.75rem;
        }

    .mobile-nav-toggle {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 3.5rem;
        height: 3.5rem;
        background: var(--accent);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        z-index: 101;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .mobile-nav-toggle:hover {
            transform: scale(1.1);
        }

    .mobile-nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 0.5rem;
        z-index: 1001;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .mobile-nav-close:hover {
            transform: scale(1.1);
        }

    .docs-nav {
        padding-top: 1rem;
    }

    .image-preview,
    .video-container {
        margin: 1.5rem 0;
        width: 100%;
    }

    .info-box,
    .warning-box {
        margin: 1.5rem 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle,
    .mobile-nav-close {
        display: none;
    }
}

/* Print styles */
@media print {
    .docs-sidebar,
    .mobile-nav-toggle,
    .mobile-nav-close {
        display: none;
    }

    .docs-container {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 0;
    }

    .docs-content {
        border: none;
        padding: 0;
    }

    .docs-header h1 {
        color: black;
        background: none;
        -webkit-background-clip: unset;
    }
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #334155;
    color: #ddd;
}

tr:last-child td {
    border-bottom: none;
}

th {
    font-weight: bold;
}