@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Base styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #0047bb;
    color: #fff;
    padding: 1.5rem;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 0.75rem 0;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.sidebar a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
    border-left: 3px solid #fff;
    padding-left: calc(0.75rem - 3px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.sidebar-footer p {
    margin: 0 0 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-footer code {
    display: block;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1000px;
}

.header {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.header h1 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.header > p {
    color: #64748b;
    margin: 0 0 1rem 0;
}

.auth-note {
    background: #f1f5f9;
    border-left: 4px solid #0047bb;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.auth-note code {
    background: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Section styles */
section {
    margin-bottom: 2rem;
}

.endpoint-section {
    margin-bottom: 3rem;
}

.section-intro {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.endpoint-title {
    color: #1e293b;
    font-size: 1.1rem;
    margin: 2rem 0 0.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.endpoint-title:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.description {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Endpoint cards */
.endpoint-card {
    display: flex;
    border-left: 5px solid #0047bb;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Method tags */
.method-tag {
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.method-tag.get {
    background-color: #22c55e;
}

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

.method-tag.delete {
    background-color: #ef4444;
}

.method-tag.put {
    background-color: #f97316;
}

.method-tag.patch {
    background-color: #8b5cf6;
}

/* Endpoint info */
.endpoint-info {
    flex: 1;
    min-width: 0;
}

.endpoint-info p {
    margin: 0.5rem 0;
}

.endpoint-info > p:first-child {
    margin-top: 0;
}

.endpoint-info code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #334155;
}

/* Auth indicators */
.auth-required {
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-required::before {
    content: "🔒 ";
}

.auth-optional {
    color: #059669;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-optional::before {
    content: "🔓 ";
}

/* Status codes */
.status-code {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
}

.status-code.success {
    background: #dcfce7;
    color: #166534;
}

.status-code.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Code blocks */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0.75rem 0;
}

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

/* Notes */
.note {
    color: #64748b;
    font-size: 0.875rem;
    font-style: italic;
}

.note code {
    font-style: normal;
}

/* Field lists */
.field-list {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.field-list li {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: #475569;
}

.field-list code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 1.5rem;
    }

    .endpoint-card {
        flex-direction: column;
        gap: 0.75rem;
    }
}
