:root {
    /* VseLLM Theme Variables - Dark (Default) */
    --primary: rgb(0, 100, 250);
    --primary-hover: rgb(0, 85, 220);
    --primary-light: rgba(0, 100, 250, 0.1);

    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #121212;
    --bg-card: #141414;
    --bg-navbar: rgba(0, 0, 0, 0.8);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --border: #27272a;
    --border-light: #3f3f46;

    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.8);

    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --border: #e4e4e7;
    --border-light: #d4d4d8;

    --primary-light: rgba(0, 100, 250, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

[data-theme="light"] .container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.banner-btn {
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .banner-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.faq-banner {
    border-color: var(--primary);
}

.faq-banner:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 100, 250, 0.3);
}

[data-theme="light"] .faq-banner:hover {
    box-shadow: 0 8px 24px rgba(0, 100, 250, 0.15);
}

.bookmark-banner {
    border-color: var(--warning);
}

.bookmark-banner:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .bookmark-banner:hover {
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.banner-icon {
    font-size: 1.5rem;
}

.banner-text {
    flex: 1;
    text-align: left;
}

.header-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 100, 250, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card.excellent-card {
    border-color: var(--success);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--bg-tertiary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead tr {
    background: var(--bg-primary);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--primary-light);
}

.model-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.provider-tag {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-online {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.latency-value {
    font-weight: 600;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

.latency-good {
    color: var(--success);
}

.latency-fair {
    color: var(--warning);
}

.latency-bad {
    color: var(--danger);
}

.health-cell {
    text-align: center;
}

.health-score {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.health-value {
    font-family: 'SF Mono', monospace;
}

.health-excellent {
    color: var(--success);
}

.health-good {
    color: #10b981;
}

.health-fair {
    color: var(--warning);
}

.health-poor {
    color: var(--danger);
}

.health-reason {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.last-updated {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.support-cell {
    text-align: center;
    font-size: 1.2rem;
}

.support-yes {
    color: var(--success);
    font-weight: 700;
}

.support-partial {
    color: var(--warning);
    font-weight: 700;
}

.support-no {
    color: var(--danger);
    font-weight: 700;
}

.support-na {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.support-unknown {
    color: var(--text-secondary);
}

.support-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* FAQ Styles */
.faq-section {
    margin-top: 3rem;
}

.faq-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 800;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: var(--transition);
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.faq-content {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-content p {
    margin-bottom: 1rem;
}

.faq-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
}

.faq-content strong {
    color: var(--primary);
    font-weight: 600;
}

.faq-content code {
    background: var(--bg-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--primary);
    border: 1px solid var(--border);
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    th:nth-child(n+5),
    td:nth-child(n+5) {
        display: none;
    }

    .banner-buttons {
        flex-direction: column;
    }

    .theme-toggle {
        top: -0.5rem;
        right: -0.5rem;
    }
}