/* assets/css/app.css - Soothing, Eye-Friendly Light Mode Theme */
:root {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-subtle: #e2e8f0;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-accent: rgba(37, 99, 235, 0.4);

  --text-main: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-purple: #7c3aed;

  /* Sticky columns widths */
  --w-col-loai: 76px;
  --w-col-bank: 104px;
  --w-col-field: 350px;
  --w-col-formula: 260px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Subtle, gentle scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Code & Numerical Typography */
.font-mono-num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Global utility classes */
.hidden {
  display: none !important;
}

/* Soft modal and drawer backdrop */
#filterBuilderBackdrop,
#formulaModalBackdrop,
#mayhemAdminBackdrop {
  background-color: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(4px);
}
