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

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

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #1a1a2e;
    color: white;
    padding: 2rem;
    position: fixed;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #2a2a3e;
}

.logo {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3a3a4e;
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #00d4ff;
}

.logo p {
    font-size: 0.875rem;
    color: #aaa;
}

nav {
    margin-top: 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-section a {
    display: block;
    color: #ddd;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.nav-section a:hover {
    background: #2a2a3e;
    color: white;
    padding-left: 1.25rem;
}

.nav-section a.active {
    background: #00d4ff;
    color: #1a1a2e;
    font-weight: 600;
}

.main-content {
    margin-left: 300px;
    padding: 3rem 4rem;
    width: calc(100vw - 300px);
    max-width: 1200px;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    color: #1a1a2e;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.25rem;
    color: #2a2a3e;
    margin: 1.5rem 0 0.75rem;
}

.lead {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
}

.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    border-left: 4px solid #00d4ff;
}

.step-guide {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-number {
    background: #00d4ff;
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-top: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.step h3 {
    margin-top: 0;
    color: #1a1a2e;
}

.step ol, .step ul {
    margin: 1rem 0 1rem 1.5rem;
}

.step li {
    margin: 0.5rem 0;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    margin: 1.5rem 0;
    transition: all 0.2s;
}

.info-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.info-card h3 {
    margin-top: 0;
    color: #1a1a2e;
}

.info-card p {
    color: #666;
    margin: 0.5rem 0;
}

.info-card a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.info-card a:hover {
    text-decoration: underline;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.example {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
    border-left: 3px solid #00d4ff;
}

.example h4 {
    margin-top: 0;
    color: #1a1a2e;
    font-size: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}

.task h3 {
    margin-top: 0;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.task p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background: #f0f0f0;
    color: #1a1a2e;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
    border-color: #00d4ff;
}

.navigation-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.nav-btn {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f0f0f0;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e7f6ff;
    border-color: #00d4ff;
    color: #004d66;
}

.alert-warning {
    background: #fff4e5;
    border-color: #ff9800;
    color: #663c00;
}

.alert strong {
    font-weight: 600;
}

/* Inline example boxes (light) */
.code-example {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: #14532d;
    font-size: 0.9rem;
}

.code-example strong {
    color: #166534;
}

/* Dark code blocks for actual code/JSON */
.code-block {
    background: #1a1a2e;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    max-width: 100%;
}

.code-block pre {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block code {
    color: #e0e0e0;
    background: transparent;
    padding: 0;
}

code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875em;
    color: #d63384;
}

.btn-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.nav-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

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

/* API Documentation Specific Styles */
.endpoint {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 1rem;
}

.endpoint-method {
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.endpoint-method.get {
    background: #4caf50;
    color: white;
}

.endpoint-method.post {
    background: #2196f3;
    color: white;
}

.endpoint-method.put {
    background: #ff9800;
    color: white;
}

.endpoint-method.delete {
    background: #f44336;
    color: white;
}

.endpoint-path {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1a1a2e;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

.endpoint-description {
    color: #666;
    font-size: 0.875rem;
    flex: 2;
    min-width: 200px;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #00d4ff;
}

.tab-btn.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.use-case {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #00d4ff;
    margin: 1rem 0;
}

.use-case h3 {
    margin-top: 0;
    color: #1a1a2e;
}

.best-practice {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
}

.best-practice h3 {
    margin-top: 0;
    color: #1a1a2e;
}

/* ================================================
   UI MOCKUP SCREENSHOTS
   ================================================ */

.ui-mockup {
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ui-mockup-bar {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #d0d0d0;
}

.ui-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}
.ui-mockup-dot.red   { background: #ff5f57; }
.ui-mockup-dot.amber { background: #ffbd2e; }
.ui-mockup-dot.green { background: #28c840; }

.ui-mockup-url {
    font-size: 0.75rem;
    color: #888;
    margin-left: 0.5rem;
}

.ui-mockup-body {
    background: #f5f5f5;
    padding: 1.5rem;
}

/* Inner card that mimics the app's white card style */
.ui-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.ui-card:last-child { margin-bottom: 0; }

.ui-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ui-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ui-card-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.ui-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: default;
}

.ui-btn-primary {
    background: #1a1a2e;
    color: white;
}

.ui-btn-outline {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.ui-empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.ui-empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ui-empty-state-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.ui-empty-state-desc {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-radius: 0.375rem;
    background: #f9fafb;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.ui-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.ui-badge-outline {
    border: 1px solid #d1d5db;
    color: #374151;
}

.ui-badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

.ui-badge-draft {
    background: #fef3c7;
    color: #92400e;
}

.ui-badge-published {
    background: #d1fae5;
    color: #065f46;
}

.ui-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}

.ui-tab {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.ui-tab.active {
    color: #111827;
    border-bottom-color: #111827;
}

.ui-mockup-caption {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    padding: 0.5rem 1rem 0.75rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .endpoint {
        flex-direction: column;
        align-items: flex-start;
    }

    .endpoint-path,
    .endpoint-description {
        flex: none;
        width: 100%;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}
/* Reference tables (roles, sponsor slots) */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95em;
}
.doc-table th,
.doc-table td {
    text-align: left;
    vertical-align: top;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e5ea;
}
.doc-table th {
    font-weight: 600;
    color: #1a1a2e;
    background: #f5f6f8;
}
.doc-table td:first-child {
    white-space: nowrap;
}
@media (max-width: 640px) {
    .doc-table td:first-child { white-space: normal; }
}
