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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
}

header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: none;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: #ef4444;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    width: 280px;
    background: #f8fafc;
    padding: 2rem;
    border-right: 1px solid #e2e8f0;
    height: calc(100vh - 240px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.875rem;
    margin-top: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar a {
    display: block;
    padding: 0.625rem 0.875rem;
    margin: 0.25rem 0;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar a:hover {
    background: #e0e7ff;
    color: #1e40af;
}

.sidebar a.active {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

main {
    flex: 1;
    padding: 3rem 4rem;
    background: white;
}

section {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #334155;
}

p {
    margin-bottom: 1rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #0ea5e9;
    font-size: 0.9rem;
}

pre {
    background: #0f172a;
    color: #e0e7ff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    border: 1px solid #1e293b;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.6rem;
    color: #475569;
    font-size: 0.95rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #f0f4f8;
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    color: #1e40af;
    font-size: 0.9rem;
}

td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.9rem;
}

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

.endpoint {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.method {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-right: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.get { background: #dbeafe; color: #0c4a6e; }
.post { background: #dcfce7; color: #166534; }
.delete { background: #fee2e2; color: #7f1d1d; }

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 3px solid;
    font-size: 0.9rem;
}

.alert-info {
    background: #f0f9ff;
    border-left-color: #0ea5e9;
    color: #0c4a6e;
}

.alert-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #7c2d12;
}

footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #1e293b;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    main {
        padding: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
