* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #212E3B;
    --dark-green: #212E3B;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e7eb;
    --code-bg: #f4f6f8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
}

.header {
    background: var(--bg-white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav a:hover {
    color: var(--primary-green);
}

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: #e5e7eb;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    overflow-x: hidden;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-green);
}

.sidebar-nav a.active {
    background: var(--primary-green);
    color: white;
}

.content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    overflow-x: hidden;
}

.endpoint {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.endpoint:last-child {
    border-bottom: none;
}

.endpoint-header {
    margin-bottom: 2rem;
}

.endpoint-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.endpoint-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.endpoint-url {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--code-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    max-width: 100%;
    overflow-x: auto;
}

.method-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-get {
    background: #10b981;
    color: white;
}

.method-post {
    background: #3b82f6;
    color: white;
}

.url-text {
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    min-width: 0;
}

.parameters {
    margin: 2rem 0;
}

.parameters h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.param-table thead {
    background: var(--primary-green);
    color: white;
}

.param-table th,
.param-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.param-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.param-table tbody tr:hover {
    background: var(--bg-light);
}

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

.status-required {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #ef4444;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-optional {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #94a3b8;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-block {
    margin: 1.5rem 0;
}

.code-block h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.code-container {
    position: relative;
}

pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
}

code {
    color: #1e293b;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--dark-green);
}

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

.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: #94a3b8;
}

.footer a {
    color: var(--primary-green);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .sidebar-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .sidebar {
        position: static;
        padding: 1rem;
    }

    .sidebar h3 {
        font-size: 0.8rem;
    }

    .sidebar-nav a {
        font-size: 0.875rem;
        padding: 0.4rem;
    }

    .content {
        padding: 1.5rem;
    }

    .intro-section {
        padding: 2rem 1rem;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .endpoint {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

    .endpoint-title {
        font-size: 1.25rem;
    }

    .endpoint-description {
        font-size: 1rem;
    }

    .endpoint-url {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 0.85rem;
    }

    .url-text {
        word-break: break-all;
        white-space: normal;
    }

    .parameters h3 {
        font-size: 1.1rem;
    }

    .param-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }

    .param-table thead,
    .param-table tbody,
    .param-table tr,
    .param-table th,
    .param-table td {
        display: block;
    }

    .param-table thead {
        display: none;
    }

    .param-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
        background: var(--bg-white);
    }

    .param-table td {
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }

    .param-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
        color: var(--text-secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .code-block h4 {
        font-size: 0.95rem;
    }

    pre {
        padding: 1rem;
        font-size: 0.8rem;
        overflow-x: auto;
    }

    .copy-btn {
        position: static;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .code-container {
        display: flex;
        flex-direction: column;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .auth-info {
        padding: 1rem;
    }

    .auth-info h4 {
        font-size: 1rem;
    }
}

.intro-section {
    background: var(--bg-white);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    overflow-x: hidden;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.auth-info {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.auth-info h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.auth-info p {
    color: #78350f;
    margin: 0;
}