/* Gazo Shared Extension Styles */

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

:root {
  --saffron-50: #FFFBEB;
  --saffron-100: #FEF3C7;
  --saffron-200: #FDE68A;
  --saffron-300: #FCD34D;
  --saffron-400: #F4C430;
  --saffron-500: #D4A017;
  --saffron-600: #B8860B;
  --saffron-700: #92690A;
  --saffron-800: #6B4D09;
  --saffron-900: #453208;
  --saffron-950: #2A1E05;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --font-family: 'JetBrains Mono', 'Consolas', monospace;
}

html {
  font-size: 100%; /* respect browser font setting */
}

body {
  font-family: var(--font-family, system-ui, -apple-system, 'Segoe UI', sans-serif);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: 0.83rem; /* ~13.3px — 95% of 14px, compact for monospace */
}

/* Make all elements inherit body font by default (browsers don't do this for form elements) */
button, input, select, textarea, label, a {
  font-family: inherit;
  font-size: inherit;
}

/* Background & Text */
.bg-slate-950 { background-color: var(--slate-950); }
.bg-slate-900 { background-color: var(--slate-900); }
.bg-slate-800 { background-color: var(--slate-800); }
.text-gray-100 { color: #f3f4f6; }
.text-gray-400 { color: var(--slate-400); }
.text-gray-500 { color: var(--slate-500); }
.text-gray-600 { color: var(--slate-600); }
.text-saffron-400 { color: var(--saffron-400); }
.text-saffron-300 { color: var(--saffron-300); }

/* Layout */
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.text-center { text-align: center; }
.font-sans { font-family: 'Inter', system-ui, sans-serif; }

/* Borders & Radius */
.border { border: 1px solid; }
.border-slate-800 { border-color: var(--slate-800); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Saffron gradient */
.bg-gradient-saffron {
  background: linear-gradient(135deg, var(--saffron-400) 0%, var(--saffron-600) 100%);
}

/* Quick action button */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 0.5rem;
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
  border-radius: 0.75rem;
  color: var(--slate-400);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-action-btn:hover {
  border-color: var(--saffron-400);
  color: var(--saffron-400);
  background: rgba(244, 196, 48, 0.05);
}

.quick-action-btn svg {
  opacity: 0.8;
}

.quick-action-btn:hover svg {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  background: var(--saffron-400);
  color: var(--saffron-950);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover:not(:disabled) {
  background: var(--saffron-500);
}

.btn-primary:disabled {
  background: var(--slate-700);
  color: var(--slate-400);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--saffron-400);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--saffron-400);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--saffron-400);
  color: var(--saffron-950);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-900); }
::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-600); }

/* Transitions */
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
