/* 
  SAT Tool - Global Design System (Linear/Studio Style)
  Colors: Monochrome palette with soft grays
*/

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #171717;
  --sub: #404040;
  --muted: #737373;
  --border: #e5e5e5;
  --border-hover: #d4d4d4;
  --accent: #000000;
  --accent-soft: #f5f5f5;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05);

  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION MENU ── */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.nav-logo img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}

.nav-link:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.nav-profile-btn:hover {
  background: var(--accent-soft);
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* ── GENERIC COMPONENTS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--border-hover);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── TOAST NOTIFICATIONS ── */
/* ── UTILITIES & ANIMATIONS ── */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
/* --- DARK THEME FOR GLOBAL NAV --- */
.global-nav.dark-theme { background: rgba(9, 14, 23, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.global-nav.dark-theme .nav-logo { color: #f8fafc; }
.global-nav.dark-theme .nav-link { color: #94a3b8; }
.global-nav.dark-theme .nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #f8fafc; }
.global-nav.dark-theme .nav-link.active { background: rgba(79, 70, 229, 0.1); color: #818cf8; }
.global-nav.dark-theme .nav-user { border-left-color: rgba(255, 255, 255, 0.08); color: #f8fafc; }
.global-nav.dark-theme .btn-logout { color: #94a3b8; border-color: rgba(255, 255, 255, 0.08); }
.global-nav.dark-theme .btn-logout:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
@media (max-width: 900px) {
  .global-nav { height: auto; }
  .nav-container { min-height: 64px; height: auto; flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .nav-link { flex: 0 0 auto; }
  .nav-user { margin-left: auto; }
}

@media (max-width: 560px) {
  .nav-container { padding-left: 14px; padding-right: 14px; }
  .nav-profile-btn span, .btn-logout { font-size: 12px !important; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
}

