/* ========================================================================
   OpenBenchML — Olive / Teal / Charcoal Dashboard Stylesheet
   Palette derived from uploaded brand image:
     charcoal #202020  (bg primary)
     slate    #2a2a2a  (bg secondary / cards)
     muted teal #608080 (accent-secondary)
     olive    #a0c000  (accent primary)
     deep teal #406060  (surfaces)
     light grey #e0e0e0 (text primary)
     mid grey  #a0a0a0  (text secondary)
   ======================================================================== */

/* --- CSS Custom Properties (Image-derived palette) --- */
:root {
  --bg-primary: #202020;
  --bg-secondary: #2a2a2a;
  --bg-card: #2d2d2d;
  --bg-elevated: #353535;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #808080;
  --accent: #a0c000;        /* olive / lime */
  --accent-hover: #80a000;  /* darker olive */
  --accent-secondary: #608080; /* muted teal */
  --accent-secondary-hover: #406060;
  --success: #a0c000;        /* olive doubles as success */
  --warning: #c0a000;        /* golden olive */
  --danger: #c04040;         /* muted brick red */
  --info: #608080;           /* teal doubles as info */
  --border: #404040;
  --border-light: #505050;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 16px rgba(160, 192, 0, 0.35);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas,
    monospace;
}

/* --- Reset & Global Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

code, pre {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(32, 32, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand a {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a0c000, #608080, #c0a000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  transition: opacity var(--transition-fast);
}

.navbar-brand a:hover {
  opacity: 0.85;
  color: transparent;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-links a {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition-base), left var(--transition-base);
}

.navbar-links a:hover {
  color: var(--text-primary);
  background: rgba(160, 192, 0, 0.10);
}

.navbar-links a:hover::after {
  width: 60%;
  left: 20%;
}

.navbar-links a.active {
  color: var(--accent);
}

.navbar-links a.active::after {
  width: 60%;
  left: 20%;
}

.navbar-links .btn {
  margin-left: 0.5rem;
}

/* Mobile nav toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(ellipse at top, rgba(160, 192, 0, 0.12) 0%, transparent 60%);
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a0c000 0%, #608080 50%, #c0a000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   CARDS
   ======================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-body {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.4;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    opacity var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 2px 8px rgba(160, 192, 0, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #608000);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(160, 192, 0, 0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-1px);
  color: var(--text-primary);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  color: #fff;
}

.btn-info {
  background: linear-gradient(135deg, var(--info), #0891b2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(96, 128, 128, 0.3);
}

.btn-info:hover {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(96, 128, 128, 0.4);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(160, 192, 0, 0.1);
  transform: translateY(-1px);
  color: var(--accent);
}

/* ========================================================================
   FORMS
   ======================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160, 192, 0, 0.2), var(--shadow-glow);
}

.form-control::placeholder {
  color: #4b5e78;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.form-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #64748b;
}

.form-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

/* ========================================================================
   TABLES
   ======================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: var(--bg-primary);
}

thead th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:nth-child(even) {
  background: rgba(45, 45, 45, 0.5);
}

tbody tr:hover {
  background: rgba(160, 192, 0, 0.06);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================================================
   STATS CARDS
   ======================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.stat-icon.icon-blue {
  background: rgba(160, 192, 0, 0.15);
  color: var(--accent);
}

.stat-icon.icon-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.stat-icon.icon-yellow {
  background: rgba(234, 179, 8, 0.15);
  color: var(--warning);
}

.stat-icon.icon-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.stat-icon.icon-cyan {
  background: rgba(96, 128, 128, 0.15);
  color: var(--info);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================================
   STATUS BADGES
   ======================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-pending {
  background: rgba(234, 179, 8, 0.12);
  color: var(--warning);
}

.badge-pending::before {
  background: var(--warning);
}

.badge-running {
  background: rgba(160, 192, 0, 0.12);
  color: var(--accent);
  animation: pulse 2s infinite;
}

.badge-running::before {
  background: var(--accent);
  animation: pulse-dot 1.5s infinite;
}

.badge-completed {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.badge-completed::before {
  background: var(--success);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.badge-failed::before {
  background: var(--danger);
}

.badge-info {
  background: rgba(96, 128, 128, 0.12);
  color: var(--info);
}

.badge-info::before {
  background: var(--info);
}

/* ========================================================================
   LEADERBOARD
   ======================================================================== */
.leaderboard-table {
  margin-top: 1.5rem;
}

.leaderboard-table tr.current-user {
  background: rgba(160, 192, 0, 0.08) !important;
  border-left: 3px solid var(--accent);
}

.leaderboard-table tr.current-user td {
  color: var(--text-primary);
  font-weight: 600;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.rank-gold {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  border: 2px solid rgba(255, 215, 0, 0.4);
}

.rank-silver {
  background: rgba(192, 192, 192, 0.15);
  color: #C0C0C0;
  border: 2px solid rgba(192, 192, 192, 0.4);
}

.rank-bronze {
  background: rgba(205, 127, 50, 0.15);
  color: #CD7F32;
  border: 2px solid rgba(205, 127, 50, 0.4);
}

/* ========================================================================
   METRIC CARDS (Benchmark Results)
   ======================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card .metric-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.metric-card .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-card .metric-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ========================================================================
   COMPARISON SECTION (Side-by-Side)
   ======================================================================== */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.comparison-card.winner {
  border-color: var(--success);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.comparison-card h4 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(64, 64, 64, 0.5);
}

.comparison-metric:last-child {
  border-bottom: none;
}

.comparison-metric .metric-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-metric .metric-score {
  font-weight: 700;
  font-size: 1rem;
}

.comparison-metric .metric-score.better {
  color: var(--success);
}

.comparison-metric .metric-score.worse {
  color: var(--danger);
}

/* ========================================================================
   GRID UTILITIES
   ======================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ========================================================================
   ALERTS / NOTIFICATIONS
   ======================================================================== */
.alert-container {
  padding: 1rem 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slide-down 0.3s ease;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.alert-warning {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.alert-info {
  background: rgba(96, 128, 128, 0.12);
  border: 1px solid rgba(96, 128, 128, 0.3);
  color: var(--info);
}

.alert-dismissible {
  position: relative;
  padding-right: 2.5rem;
}

.alert-close {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.alert-close:hover {
  opacity: 1;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
  margin-top: auto;
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  color: #4b5e78;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: #4b5e78;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ========================================================================
   UTILITIES
   ======================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full { width: 100%; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================================================
   PAGE-SPECIFIC: Auth Forms
   ======================================================================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: 2rem 0;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========================================================================
   PAGE-SPECIFIC: Jobs / Progress
   ======================================================================== */
.progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent), var(--info));
  transition: width 0.5s ease;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease both;
}

.animate-slide-up {
  animation: slide-up 0.5s ease both;
}

.animate-slide-up-delay-1 {
  animation: slide-up 0.5s ease 0.1s both;
}

.animate-slide-up-delay-2 {
  animation: slide-up 0.5s ease 0.2s both;
}

.animate-slide-up-delay-3 {
  animation: slide-up 0.5s ease 0.3s both;
}

/* Staggered children animation */
.stagger-children > * {
  animation: slide-up 0.4s ease both;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, #2a3a52 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ========================================================================
   RESPONSIVE — Mobile (<768px)
   ======================================================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.75rem 0;
    gap: 0;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-links a {
    padding: 0.65rem 1rem;
    width: 100%;
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide less-important columns in tables on mobile */
  table .hide-mobile {
    display: none;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
}

/* ========================================================================
   RESPONSIVE — Tablet (768px–1024px)
   ======================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================================
   SCROLLBAR STYLING
   ======================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ========================================================================
   SELECTION
   ======================================================================== */
::selection {
  background: rgba(160, 192, 0, 0.3);
  color: var(--text-primary);
}

/* ========================================================================
   PRINT STYLES (minimal)
   ======================================================================== */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
