:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-surface: #f8fafc;
    --card-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --badge-bg: #e0e7ff;
    --badge-color: #3730a3;
}

body {
    background-color: #f1f5f9;
    color: var(--text-primary);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--card-border);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--card-border);
    font-weight: 600;
}

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.code-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-copy {
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

pre {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    overflow-x: auto;
}

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

.badge-model {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

