body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    padding: 25px;
    text-align: center;
    background: linear-gradient(to right, #2c3e50, #2477ad);
    color: #fff;
}

header h1 { margin: 0; font-size: 2rem; }

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
    margin-top: 32px;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

p { margin-bottom: 20px; }

.support-project {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.support-project a {
    display: inline-flex;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-project a:hover {
    transform: translateY(18px);
    box-shadow: 0 5px 14px rgba(39, 56, 104, 0.24);
}

.support-badge {
    display: block;
    height: 45px;
}

code {
    background: #f3f3f3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "Courier New", monospace;
}

footer {
    background: #f2f3f5;
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 25px 0;
    color: #666;
    font-size: 0.95rem;
}

footer p { margin: 0; }

footer a {
    color: #555;
    text-decoration: underline;
    text-decoration-color: #bbb;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

footer a:hover { color: #333; text-decoration-color: #888; }

.section { margin-top: 24px; }
.accordion { margin: 12px 0 0; padding: 0; list-style: none; }

details.item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    margin: 12px 0;
    overflow: hidden;
}

details[open].item { box-shadow: 0 6px 16px rgba(0,0,0,0.06); }

summary.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

summary.item-header::-webkit-details-marker { display: none; }

.chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #2477ad;
    border-bottom: 2px solid #2477ad;
    transform: rotate(-45deg);
    transition: transform 180ms ease;
    flex: 0 0 auto;
}

details[open] .chevron { transform: rotate(45deg); }

.item-title { font-weight: 600; color: #2c3e50; letter-spacing: 0.2px; }

.item-meta {
    margin-left: auto;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    opacity: 0.85;
    font-size: 0.9em;
}

.panel {
    padding: 0 16px 18px 40px;
    border-top: 1px solid #f0f0f0;
    background: #fcfdff;
}

.endpoints {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.endpoint-card {
    border: 1px solid #eef1f5;
    border-radius: 10px;
    background: #fff;
    padding: 14px 14px 10px;
}

.endpoint-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    align-items: center;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #dfe7ef;
    background: #f7fbff;
}

.badge[data-method="GET"] { background: #f1f9ff; border-color: #cfe8ff; }
.badge[data-method="POST"] { background: #f7fff7; border-color: #cef1ce; }

.endpoint-label { color: #6a7b8f; font-weight: 600; font-size: 0.9rem; }
.endpoint-path { font-weight: 600; }

.io-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.io-row {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.io-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dfe7ef;
    background: #f8fbff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #2c3e50;
    text-transform: uppercase;

    box-sizing: content-box;
    flex: 0 0 7ch;
    width: 7ch;
    justify-content: center;
    text-align: center;
}

.io-code {
    flex: 1 1 auto;
    background: #f6f8fb;
    border: 1px solid #e3e9f2;
    border-radius: 8px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow-x: auto;
}

.io-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.notes {
    margin-top: 10px;
    border-top: 1px dashed #e6edf5;
    padding-top: 10px;
    color: #555;
    font-size: 0.9rem;
}

.notes a { color: #2477ad; text-decoration: underline; }

.muted { color: #6f7a86; font-size: 0.9em; }

.disclaimer-box {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 25px 30px;

    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.disclaimer-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.disclaimer-box p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 768px) {
    .io-row {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .io-code {
        white-space: nowrap;
        overflow-x: auto;
        flex-shrink: 0;
        min-width: max-content;
    }

    .endpoint-card {
        overflow-x: auto;
    }

    .io-block {
        align-items: flex-start;
    }
}
