﻿/* Docs Layout */
.docs-container {
    display: flex;
    min-height: calc(100vh - 73px);
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.docs-nav-section {
    margin-bottom: 2rem;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-gray);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.docs-nav-link {
    display: block;
    padding: 0.625rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

    .docs-nav-link:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .docs-nav-link.active {
        color: var(--accent-color);
        background: #f5f3ff;
        border-left-color: var(--accent-color);
        font-weight: 600;
    }

/* Main Content */
.docs-content {
    flex: 1;
    padding: 3rem;
    max-width: 900px;
}

.docs-header {
    margin-bottom: 3rem;
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.docs-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.docs-section {
    margin-bottom: 3rem;
}

    .docs-section h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--text-dark);
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--border-color);
    }

    .docs-section h3 {
        font-size: 1.375rem;
        font-weight: 600;
        margin: 2rem 0 1rem;
        color: var(--text-dark);
    }

    .docs-section p {
        line-height: 1.8;
        color: var(--text-gray);
        margin-bottom: 1rem;
    }

    .docs-section ul, .docs-section ol {
        margin: 1rem 0;
        padding-left: 1.5rem;
    }

    .docs-section li {
        line-height: 1.8;
        color: var(--text-gray);
        margin-bottom: 0.5rem;
    }

/* Code Block */
.code-block {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-inline {
    background: #f3f4f6;
    color: #dc2626;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box-title {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-content {
    color: #1e40af;
    line-height: 1.7;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box-content {
    color: #92400e;
    line-height: 1.7;
}

/* Table */
.docs-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

    .docs-table th {
        background: var(--bg-light);
        padding: 0.875rem;
        text-align: left;
        font-weight: 600;
        color: var(--text-dark);
        border-bottom: 2px solid var(--border-color);
    }

    .docs-table td {
        padding: 0.875rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-gray);
    }

/* Search Box */
.search-box {
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
}

    .search-input:focus {
        outline: none;
        border-color: var(--accent-color);
    }

@media (max-width: 992px) {
    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 2rem 1.5rem;
    }
}