﻿
html, body {
    overflow-y: auto !important;
    height: auto !important;
}

.api-docs {
    padding: 2rem;
}

    /* === Back link === */
    .api-docs .back-link {
        display: inline-block;
        margin-bottom: 1.5rem;
        color: #00c8dc;
        text-decoration: none;
        font-size: 0.85rem;
        opacity: 0.6;
        transition: opacity 0.2s;
    }

        .api-docs .back-link:hover {
            opacity: 1;
        }

    /* === Title with shimmer === */
    .api-docs .api-title {
        font-size: 2.5rem;
        font-weight: 800;
        letter-spacing: -1px;
        background: linear-gradient(90deg, #00c8dc, #0090ff, #00c8dc);
        background-size: 200% auto;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: api-shimmer 3s linear infinite;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
        border-bottom: 2px solid rgba(0, 200, 220, 0.15);
    }

@keyframes api-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* === Subtitle & description === */
.api-docs .subtitle {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.api-docs .description {
    color: #7ecfdf;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* === Stats badge with pulse === */
.api-docs .stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 200, 220, 0.08);
    border: 1px solid rgba(0, 200, 220, 0.15);
    border-radius: 999px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    color: #7ecfdf;
    letter-spacing: 0.5px;
}

    .api-docs .stats .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #00c8dc;
        animation: api-pulse 2s ease-in-out infinite;
    }

@keyframes api-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* === Table of Contents === */
.api-docs .toc {
    margin-bottom: 2rem;
}

    .api-docs .toc h2 {
        font-size: 1.1rem;
        margin-top: 1rem;
        color: #00c8dc;
        border-bottom: none;
    }

    .api-docs .toc ul {
        list-style: none;
        padding-left: 0;
    }

    .api-docs .toc li {
        margin: 0.3rem 0;
    }

    .api-docs .toc a {
        color: #7ecfdf;
        text-decoration: none;
        transition: color 0.2s;
    }

        .api-docs .toc a:hover {
            color: #00c8dc;
        }

/* === Section headers === */
.api-docs h2 {
    color: #00c8dc;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(0, 200, 220, 0.15);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

/* === Endpoint cards === */
.api-docs .endpoint {
    border: 1px solid rgba(0, 200, 220, 0.15);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #111827;
    transition: border-color 0.2s;
}

    .api-docs .endpoint:hover {
        border-color: rgba(0, 200, 220, 0.35);
    }

.api-docs .endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #0d1321;
    cursor: pointer;
    transition: background 0.2s;
}

    .api-docs .endpoint-header:hover {
        background: #131b2e;
    }

.api-docs .endpoint-body {
    padding: 1rem;
    display: none;
    border-top: 1px solid rgba(0, 200, 220, 0.15);
}

.api-docs .endpoint[data-open="true"] .endpoint-body {
    display: block;
}

/* === Method badges === */
.api-docs .method-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: #0a0e17;
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 62px;
    text-align: center;
    font-family: 'Consolas', 'Courier New', monospace;
}

    .api-docs .method-badge.get {
        background: #00c8dc;
    }

    .api-docs .method-badge.post {
        background: #0090ff;
    }

    .api-docs .method-badge.put {
        background: #e08a1e;
    }

    .api-docs .method-badge.delete {
        background: #c0392b;
    }

    .api-docs .method-badge.patch {
        background: #8e44ad;
    }

.api-docs .endpoint-path {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.api-docs .endpoint-summary {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin-left: auto;
}

/* === Section labels inside cards === */
.api-docs .section-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: #00c8dc;
    margin: 1rem 0 0.4rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Tables === */
.api-docs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.api-docs th {
    background: #0d1321;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 200, 220, 0.15);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #7ecfdf;
    letter-spacing: 0.5px;
}

.api-docs td {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0, 200, 220, 0.15);
    color: #cce8f0;
}

    .api-docs td code {
        color: #fff;
        background: rgba(0, 200, 220, 0.1);
        padding: 0.1rem 0.35rem;
        border-radius: 3px;
        font-size: 0.85rem;
    }

.api-docs tr:nth-child(even) td {
    background: rgba(0, 200, 220, 0.03);
}

/* === Schema cards === */
.api-docs .schema-card {
    border: 1px solid rgba(0, 200, 220, 0.15);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #111827;
    transition: border-color 0.2s;
}

    .api-docs .schema-card:hover {
        border-color: rgba(0, 200, 220, 0.35);
    }

.api-docs .schema-card-header {
    padding: 0.75rem 1rem;
    background: #0d1321;
    font-weight: 700;
    color: #00c8dc;
    cursor: pointer;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    transition: background 0.2s;
}

    .api-docs .schema-card-header:hover {
        background: #131b2e;
    }

.api-docs .schema-card-body {
    padding: 1rem;
    display: none;
    border-top: 1px solid rgba(0, 200, 220, 0.15);
}

.api-docs .schema-card[data-open="true"] .schema-card-body {
    display: block;
}

/* === Tags === */
.api-docs .required-tag {
    display: inline-block;
    background: rgba(0, 200, 220, 0.15);
    color: #00c8dc;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.api-docs .content-type {
    font-family: 'Consolas', 'Courier New', monospace;
    background: rgba(0, 200, 220, 0.1);
    color: #7ecfdf;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.api-docs .schema-ref {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #00c8dc;
    font-weight: 600;
    text-decoration: none;
}

    .api-docs .schema-ref:hover {
        text-decoration: underline;
    }
