@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&family=JetBrains+Mono&display=swap');

:root {
    /* Color Palette - Precise Specification */
    --primary: #4F6AF6;
    --primary-hover: #3D53D4;
    --accent: #6C63FF;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border: #F1F5F9;
    --border-hover: #E2E8F0;

    /* Text Hierarchy */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Sidebar - Premium Dark/Light Contrast */
    --sidebar-bg: #FFFFFF;
    --sidebar-hover: #F9FAFB;
    --sidebar-active-bg: #F0F2FF;
    --sidebar-active-text: #4F6AF6;

    /* Typography Sizes - Precise Hierarchy */
    --fs-h1: 36px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-xs: 11px;

    /* Spacing Grid (Elite generous padding) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;

    /* Component Attributes */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Elite Dark Mode Implementation */
[data-theme='dark'] {
    --background: #0B0E14;
    --surface: #11141D;
    --border: #1F2937;
    --border-hover: #374151;

    /* Text Hierarchy */
    --text-primary: #F9FAFB;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Sidebar - Premium Dark Contrast */
    --sidebar-bg: #11141D;
    --sidebar-hover: #1F2937;
    --sidebar-active-bg: #4F6AF6;
    --sidebar-active-text: #FFFFFF;

    /* Shadows for Dark Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    background-color: var(--background);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    /* Aggressive letter spacing for premium look */
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-hover);
}

/* Utility Classes - Fintech Optimization */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-12 {
    margin-bottom: 48px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-10 {
    margin-top: 40px;
}

.mt-16 {
    margin-top: 64px;
}

.pt-8 {
    padding-top: 32px;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.p-4 {
    padding: 16px;
}

.px-5 {
    padding-left: 20px;
    padding-right: 20px;
}

.px-12 {
    padding-left: 48px;
    padding-right: 48px;
}

.py-16 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.text-tiny {
    font-size: 10px;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 11px;
}

.w-full {
    width: 100%;
}

.bg-white {
    background-color: var(--surface);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-2xl {
    border-radius: 24px;
}

.rounded-xl {
    border-radius: 16px;
}

.h-full {
    height: 100%;
}

.max-w-xs {
    max-width: 320px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-dashed {
    border-style: dashed;
}

.border-gray-200 {
    border-color: #E2E8F0;
}

.bg-slate-50 {
    background-color: #F8FAFC;
}

.border-slate-100 {
    border-color: #F1F5F9;
}

.text-slate-500 {
    color: #64748B;
}

.text-slate-800 {
    color: #1E293B;
}

.shadow-premium {
    box-shadow: var(--shadow-premium);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}