/* Design System Tokens */
:root {
    /* Colors */
    --bg-primary:       #FFFFFF;
    --bg-secondary:     #F7F8FA;
    --bg-card:          #FFFFFF;
    --border:           #E8EAED;
    --accent:           #2563EB;
    --accent-light:     #EFF6FF;
    --accent-hover:     #1D4ED8;
    --text-primary:     #111827;
    --text-secondary:   #6B7280;
    --text-muted:       #9CA3AF;
    --success:          #10B981;
    --warning:          #F59E0B;
    --danger:           #EF4444;
    
    /* Shadows */
    --shadow-sm:        0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:        0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:        0 4px 16px rgba(0,0,0,0.10);

    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    height: 100vh;
    overflow: hidden; /* Main shell doesn't scroll */
}

/* Typography */
h1, h2, h3, .display-font {
    font-family: 'DM Sans', sans-serif;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.label-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.badge-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

code, pre, .mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

body:hover ::-webkit-scrollbar-thumb,
.scrollable:hover ::-webkit-scrollbar-thumb {
    background: var(--border);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Layout Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.p-32 { padding: 32px; }
.pt-0 { padding-top: 0 !important; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.cursor-pointer { cursor: pointer; }
.text-center { text-align: center; }
.white-space-nowrap { white-space: nowrap; }
