@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Google+Sans+Text:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import "tailwindcss";

:root {
  --bg:          #f5f6f8;
  --bg1:         #ffffff;
  --bg2:         #f0f1f3;
  --bg3:         #e5e7eb;
  --border:      rgba(0,0,0,0.07);
  --border-md:   rgba(0,0,0,0.12);
  --border-hi:   rgba(0,0,0,0.22);
  --text1:       #1a1d24;
  --text2:       #5f6b7a;
  --text3:       #9ca3af;
  --cyan:        #0077b6;
  --cyan-dim:    rgba(0,119,182,0.06);
  --cyan-mid:    rgba(0,119,182,0.14);
  --gold:        #b8860b;
  --gold-dim:    rgba(184,134,11,0.08);
  --green:       #059669;
  --green-dim:   rgba(5,150,105,0.08);
  --red:         #dc2626;
  --red-dim:     rgba(220,38,38,0.07);
  --orange:      #ea580c;
  --purple:      #7c3aed;
  --purple-dim:  rgba(124,58,237,0.07);
  --font-sans:   'Google Sans', 'Google Sans Text', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'IBM Plex Mono', 'SF Mono', monospace;
  --sidebar-w:   230px;
}

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

html { color-scheme: light; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text1);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

#root { display: flex; min-height: 100vh; }

/* Numbers and code: always IBM Plex Mono */
.mono, code, pre, kbd,
[data-mono],
.tabular-nums { font-family: var(--font-mono); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.24); }

/* Glow utility — subtle in light mode */
.glow-cyan  { text-shadow: none; }
.glow-gold  { text-shadow: none; }
.glow-green { text-shadow: none; }

/* Fade-in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.22s ease-out both; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin { animation: spin 0.9s linear infinite; }

@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* SQS bar */
.sqs-bar {
  display: inline-block;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  vertical-align: middle;
}

/* Card */
.card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--border-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.card-active { border-color: var(--cyan) !important; box-shadow: 0 0 0 2px var(--cyan-dim); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  padding: 0 16px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: var(--cyan-dim); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Input / Select */
input, select, textarea {
  background: var(--bg1);
  border: 1px solid var(--border-md);
  color: var(--text1);
  border-radius: 7px;
  font-family: inherit;
  font-size: 15px;
  padding: 9px 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-dim); }
input::placeholder { color: var(--text3); }

/* Button */
button.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 7px;
  border: 1px solid var(--border-md);
  background: var(--bg1);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
button.btn:hover { background: var(--bg2); color: var(--text1); border-color: var(--border-hi); }
button.btn-primary {
  background: var(--cyan-dim);
  border-color: rgba(0,119,182,0.28);
  color: var(--cyan);
}
button.btn-primary:hover { background: var(--cyan-mid); }
