﻿/* Modern Documentation Styles */
.doc-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 32px;
    margin-bottom: 24px;
}

.doc-header {
    background: #0A5F59;
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 32px;
    color: #E1FF2D;
    text-align: center;
    border: none;
    box-shadow: 0 8px 24px rgba(132, 204, 22, 0.2);
    position: relative;
}

    .doc-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--admin-primary) 0%, var(--admin-neon-green) 100%);
        border-radius: 16px 16px 0 0;
    }

    .doc-header h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 12px;
        font-family: 'Montserrat', sans-serif;
    }

    .doc-header p {
        font-size: 18px;
        opacity: 0.95;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.8);
    }

/* Documentation Header Responsive */
.doc-header-title {
    color: #E1FF2D;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.doc-header-desc {
    color: #F8FAFC;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Tab Navigation */
.api-tabs .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.api-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 24px;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    background: transparent;
}

    .api-tabs .nav-link:hover {
        color: #F8FAFC;
        background: #00C4B4;
    }

    .api-tabs .nav-link.active {
        color: #00C4B4;
        border-bottom-color: #00C4B4;
        background: #f9fafb;
    }

/* Endpoint Card */
.endpoint-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.method-badge {
    background: #10b981;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    flex: 1;
    border-left: 4px solid #00C4B4;
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    position: relative;
    overflow-x: auto;
}

    .code-block pre {
        margin: 0;
        color: #e2e8f0;
        font-family: 'Courier New', monospace;
        font-size: 14px;
        line-height: 1.6;
    }

    .code-block code {
        color: #e2e8f0;
    }

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #334155;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .copy-btn:hover {
        background: #475569;
    }

    .copy-btn:active {
        background: #10b981;
    }

/* Parameter Table */
.param-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .param-table thead,
    .param-table tbody,
    .param-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .param-table thead {
        background: #f9fafb;
    }

    .param-table th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        font-size: 13px;
        color: #374151;
        border-bottom: 2px solid #e5e7eb;
        word-wrap: break-word;
    }

    .param-table td {
        padding: 12px 16px;
        font-size: 14px;
        color: #6b7280;
        border-bottom: 1px solid #f3f4f6;
        word-wrap: break-word;
    }

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

.param-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1f2937;
}

.param-type {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.param-required {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Response Example */
.response-example {
    margin-top: 20px;
}

.response-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.response-tab-btn {
    background: #f3f4f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

    .response-tab-btn.active {
        background: #00C4B4;
        color: white;
    }

    .response-tab-btn:hover {
        background: #e5e7eb;
    }

    .response-tab-btn.active:hover {
        background: #00c4b4d2;
    }

/* Info Boxes */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #00C4B4;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

    .info-box.success {
        background: #f0fdf4;
        border-left-color: #10b981;
    }

    .info-box.warning {
        background: #fffbeb;
        border-left-color: #f59e0b;
    }

    .info-box h6 {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .info-box p {
        margin-bottom: 0;
        font-size: 14px;
        color: #6b7280;
    }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.feature-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

    .feature-item i {
        font-size: 32px;
        color: #00C4B4;
        margin-bottom: 12px;
    }

    .feature-item h6 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .feature-item p {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
    }

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-container {
        padding: 20px;
    }

    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .code-block {
        padding: 16px;
    }

    .api-tabs .nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Responsive table for mobile */
    .param-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .param-table thead,
    .param-table tbody,
    .param-table tr {
        display: table;
        width: 100%;
        table-layout: auto;
    }

    .param-table th,
    .param-table td {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 100px;
    }

    .param-table td:last-child {
        min-width: 150px;
        white-space: normal;
    }

    .param-name {
        font-size: 12px;
    }

    .param-type {
        font-size: 10px;
        padding: 2px 6px;
    }

    .param-required {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 4px;
    }

    .endpoint-url {
        font-size: 13px;
        padding: 10px 12px;
        word-break: break-all;
    }

    .endpoint-card {
        padding: 16px;
    }

    /* Documentation header responsive */
    .doc-header-title {
        font-size: 1.5rem;
    }

    .doc-header-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .doc-container {
        padding: 16px;
    }

    .doc-header {
        padding: 32px 16px;
    }

    .doc-header-title {
        font-size: 1.25rem;
    }

    .doc-header-desc {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 18px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        padding: 16px;
    }

    .feature-item i {
        font-size: 24px;
    }

    .feature-item h6 {
        font-size: 12px;
    }

    .feature-item p {
        font-size: 11px;
    }
}
