/* Docs Page Styles */

.docs-main {
    background-color: var(--bg-color);
    padding: 30px;
    margin-top: 70px;
}

.docs-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.docs-container > h1 {
    font-size: 42px;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.docs-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 40px 0;
}

.docs-content {
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.docs-sidebar {
    flex: 0 0 250px;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.docs-nav-title {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding: 10px 0;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 14px;
    cursor: pointer;
}

.docs-nav-item:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.docs-nav-item.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    color: #1E3A8A;
    border-left: 3px solid #00BFFF;
    padding-left: 12px;
}

.docs-nav-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 15px 0;
}

.docs-method {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.docs-method.get {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.docs-method.post {
    background-color: #fff3e0;
    color: #e65100;
}

.docs-method-class {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.docs-main-content {
    flex: 1;
    min-width: 0;
}

.docs-endpoint-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docs-endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.docs-endpoint-path {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
}

.docs-main-content h3 {
    font-size: 28px;
    margin: 20px 0 10px 0;
    color: #1a1a1a;
}

.docs-main-content > .docs-endpoint-section > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.docs-section {
    margin-bottom: 30px;
}

.docs-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.docs-section p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.docs-table th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    border-bottom: 2px solid var(--border-color);
}

.docs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.docs-table tr:hover {
    background-color: #fafafa;
}

.docs-table tr:last-child td {
    border-bottom: none;
}

pre {
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0 0 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

code {
    color: #e0e0e0;
}

/* Python Syntax Highlighting */
.language-python {
    color: #e0e0e0;
}

/* JSON Syntax Highlighting */
.language-json {
    color: #e0e0e0;
}

.docs-status-codes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-status-codes li {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: #f5f5f5;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-200 {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 50px;
    text-align: center;
}

.status-400 {
    display: inline-block;
    background-color: #fff3e0;
    color: #e65100;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 50px;
    text-align: center;
}

.status-401 {
    display: inline-block;
    background-color: #ffebee;
    color: #c62828;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 50px;
    text-align: center;
}

.status-404 {
    display: inline-block;
    background-color: #f3e5f5;
    color: #6a1b9a;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    min-width: 50px;
    text-align: center;
}

/* Scrollbar Styling */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-content {
        flex-direction: column;
    }

    .docs-sidebar {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .docs-container {
        width: 95%;
    }

    .docs-container > h1 {
        font-size: 32px;
    }

    .docs-content {
        padding: 20px;
    }

    .docs-table th,
    .docs-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    pre {
        font-size: 11px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .docs-main {
        padding: 15px;
        margin-top: 60px;
    }

    .docs-container {
        width: 100%;
    }

    .docs-container > h1 {
        font-size: 28px;
    }

    .docs-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .docs-content {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .docs-sidebar {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        max-height: none;
    }

    .docs-nav-item {
        padding: 10px 12px;
        margin-bottom: 6px;
        font-size: 12px;
        gap: 8px;
    }

    .docs-method {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 40px;
    }

    .docs-method-class {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 40px;
    }

    .docs-endpoint-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .docs-endpoint-path {
        font-size: 14px;
    }

    .docs-main-content h3 {
        font-size: 20px;
        margin: 15px 0 8px 0;
    }

    .docs-main-content > .docs-endpoint-section > p {
        font-size: 13px;
    }

    .docs-section h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .docs-section p {
        font-size: 12px;
    }

    .docs-table {
        font-size: 11px;
    }

    .docs-table th {
        padding: 8px 6px;
    }

    .docs-table td {
        padding: 8px 6px;
    }

    pre {
        font-size: 10px;
        padding: 12px;
        margin-bottom: 15px;
        overflow-x: auto;
    }

    .docs-status-codes li {
        padding: 8px 12px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .status-200,
    .status-400,
    .status-401,
    .status-404 {
        font-size: 10px;
        padding: 2px 8px;
        min-width: 45px;
    }
}
