/* ==========================================================================
   BASE & DESIGN TOKENS (Apple San Francisco Typography & Palette)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette - Financial Terminal Theme (Clean White & Slate) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  
  /* Accent Brands */
  --brand-lime: #4d7c0f;
  --brand-lime-hover: #3f6212;
  --brand-lime-bright: #65a30d;
  --brand-lime-dim: rgba(101, 163, 13, 0.12);
  --brand-lime-border: rgba(101, 163, 13, 0.35);

  /* Status Colors */
  --status-confirmed-bg: #f0fdf4;
  --status-confirmed-text: #166534;
  --status-confirmed-border: #bbf7d0;

  --status-watchlist-bg: #fffbeb;
  --status-watchlist-text: #b45309;
  --status-watchlist-border: #fde68a;

  --status-fail-bg: #fef2f2;
  --status-fail-text: #991b1b;
  --status-fail-border: #fecaca;

  --status-div-reg-bg: #ecfdf5;
  --status-div-reg-text: #047857;
  --status-div-reg-border: #a7f3d0;

  --status-div-hid-bg: #eff6ff;
  --status-div-hid-text: #1d4ed8;
  --status-div-hid-border: #bfdbfe;

  /* Typography - Apple San Francisco Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shadows */
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-lime: 0 4px 14px 0 rgba(77, 124, 15, 0.39);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInToast 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
