/* ============================================================================
 * Graaphix Trading SaaS — Institutional Design System (v3.0.0)
 * Created by Graaphix | Designed by Graaphix
 * Aesthetic: Institutional Carbon-Slate & Emerald Quantitative Terminal
 * ============================================================================ */

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

:root {
    --bg-canvas: #06090f;
    --bg-surface: #0b101b;
    --bg-elevated: #101726;
    --border-hairline: rgba(148, 163, 184, 0.12);
    --border-accent: rgba(16, 185, 129, 0.35);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.14);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-canvas);
    color: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-canvas);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 85% 0%, rgba(20, 184, 166, 0.05) 0%, transparent 38%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(6, 9, 15, 1) 100%);
    background-attachment: fixed;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
}

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

/* Institutional Glass Surface & Hairline Borders | Designed by Graaphix */
.gx-surface {
    background: rgba(11, 16, 27, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}

.gx-surface-interactive {
    background: rgba(11, 16, 27, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.13);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gx-surface-interactive:hover {
    border-color: rgba(16, 185, 129, 0.38);
    background: rgba(15, 23, 38, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px -10px rgba(16, 185, 129, 0.12);
}

.gx-kpi-card {
    background: linear-gradient(180deg, rgba(15, 23, 38, 0.88) 0%, rgba(9, 14, 24, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.13);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gx-kpi-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
}

/* Segmented Workspace Tab Buttons | Created by Graaphix */
.gx-tab-btn {
    position: relative;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.gx-tab-btn.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 20px -4px rgba(16, 185, 129, 0.25);
}

/* Tactile Button Feedback */
button:active:not(:disabled), a.gx-btn:active {
    transform: scale(0.985);
}

/* Subtle Custom Scrollbars for Dense Tables */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #06090f;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

/* Graaphix Master Architecture | Created by Graaphix | Designed by Graaphix */
