/* VolTrack Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-dark:  #4338CA;
  --secondary:     #7C3AED;
  --bg:            #F1F5F9;
  --surface:       #FFFFFF;
  --surface-2:     #F8FAFC;
  --border:        #E2E8F0;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --success-bg:    #F0FDF4;
  --success-text:  #065F46;
  --success-border:#BBF7D0;
  --danger-bg:     #FEE2E2;
  --danger-text:   #991B1B;
  --danger-border: #FCA5A5;
  --warning-bg:    #FEF3C7;
  --warning-text:  #92400E;
  --warning-border:#FDE68A;
  --info-bg:       #EEF2FF;
  --info-text:     #4F46E5;
  --info-border:   #C7D2FE;
  --radius:        0.75rem;
  --radius-sm:     0.5rem;
  --radius-lg:     1rem;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
html {
  color-scheme: light dark;
  background-color: var(--bg);
  overflow-x: hidden;
}

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

body {
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Site-wide banners ───────────────────────────────────────────────────── */
.site-banner {
  position: relative;
  width: 100%;
  padding: .55rem 2.5rem;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
}
.site-banner button:hover { opacity: 1 !important; }
.site-banner-info    { background: #1E3A5F; color: #93C5FD; }
.site-banner-warning { background: #451A03; color: #FCD34D; }
.site-banner-danger  { background: #450A0A; color: #FCA5A5; }
[data-theme="dark"] .site-banner-info    { background: #1e3a5f; }
[data-theme="dark"] .site-banner-warning { background: #451A03; }
[data-theme="dark"] .site-banner-danger  { background: #450A0A; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  background-color: #ffffff !important;
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--primary) !important;
  letter-spacing: -0.03em;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem !important;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(79,70,229,.07);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.user-pill:hover { background: var(--border); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
main { padding: 1.5rem 0 3rem; min-height: calc(100vh - 140px); }

.page-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

.page-header .lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }

/* ── Stat Cards ──────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.progress {
  height: 10px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  background: var(--progress-bg, linear-gradient(90deg, var(--primary), var(--secondary)));
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-card .table {
  margin: 0;
}

.leaderboard-current {
  background: #EEF2FF;
  font-weight: 600;
}

.table {
  font-size: 0.875rem;
  color: var(--text);
}

.table thead th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover td { background: var(--surface-2); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3em 0.65em;
  border-radius: 99px;
}

.badge-pending  { background: #FFFBEB; color: #92400E; }
.badge-approved { background: #F0FDF4; color: #166534; }
.badge-rejected { background: #FFF1F2; color: #9F1239; }
.badge-flagged  { background: #FFF1F2; color: #9F1239; border: 1px solid #FECDD3; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  background-color: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
  outline: none;
}

.input-group-text {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem;
  transition: all .15s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary, .btn-outline-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-sm { font-size: 0.8125rem; padding: 0.3rem 0.7rem; }
.btn-lg { padding: 0.65rem 1.5rem; font-size: 0.9375rem; }

/* ── Alerts / Flash ──────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border: none;
  font-weight: 500;
}

.alert-success { background: #F0FDF4; color: #166534; border-left: 3px solid #4ADE80; }
.alert-danger   { background: #FFF1F2; color: #9F1239; border-left: 3px solid #FB7185; }
.alert-warning  { background: #FFFBEB; color: #92400E; border-left: 3px solid #FCD34D; }
.alert-info     { background: #EFF6FF; color: #1D4ED8; border-left: 3px solid #60A5FA; }

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Empty states ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
}

/* ── Dropdown ────────────────────────────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  padding: 0.375rem;
}

.dropdown-item {
  border-radius: calc(var(--radius-sm) - 2px);
  padding: 0.45rem 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.dropdown-item:hover { background: var(--surface-2); color: var(--text); }
.dropdown-item.text-danger { color: var(--danger) !important; }
.dropdown-item.text-danger:hover { background: #FFF1F2; }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card, .stat-card, .table-card {
  animation: fadeInUp 0.25s ease both;
}

/* ── Button polish ───────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--btn-bg, linear-gradient(135deg, var(--primary), var(--primary-dark)));
  border: none;
}
.btn-primary:hover {
  background: var(--btn-bg-hover, var(--primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  filter: brightness(0.93);
}
.btn-primary:active { transform: translateY(0); filter: none; }

.btn-outline-secondary:hover {
  transform: translateY(-1px);
}

/* ── Stat card color accents ─────────────────────────────────────────────── */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-accent, var(--border));
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card-primary   { --stat-accent: var(--primary); }
.stat-card-success   { --stat-accent: #10B981; }
.stat-card-warning   { --stat-accent: #F59E0B; }
.stat-card-neutral   { --stat-accent: #94A3B8; }

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

/* ── Auth page header ────────────────────────────────────────────────────── */
.auth-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}

/* ── Active nav link ─────────────────────────────────────────────────────── */
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(79,70,229,.08);
  font-weight: 600;
}

/* ── Mobile card layout for tables ──────────────────────────────────────── */
@media (max-width: 640px) {
  .mobile-card-list { display: flex; flex-direction: column; gap: 0.75rem; }
  .mobile-card-list table,
  .mobile-card-list thead,
  .mobile-card-list tbody,
  .mobile-card-list tr,
  .mobile-card-list th,
  .mobile-card-list td { display: block; }
  .mobile-card-list thead { display: none; }
  .mobile-card-list tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
  }
  .mobile-card-list tbody td {
    border: none;
    padding: 0.15rem 0;
    font-size: 0.875rem;
  }
  .mobile-card-list tbody td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline;
  }
  .mobile-card-list tbody td:empty { display: none; }
}

/* ── Hero section (home page) ────────────────────────────────────────────── */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(79,70,229,.08);
  color: var(--primary);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 99px;
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
}
.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 1rem auto 2rem;
  line-height: 1.7;
}

/* ── Feature card (home page) ────────────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 1.25rem;
}

/* ── Progress bar label ──────────────────────────────────────────────────── */
.progress-wrap { position: relative; }
.progress-glow .progress-bar {
  box-shadow: 0 0 10px rgba(79,70,229,.4);
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .table-card { border-radius: 0; border-left: none; border-right: none; }
  .stat-value { font-size: 1.5rem; }
  .hero-section { padding: 3rem 0 2.5rem; }
}

/* ── VT Redesign — Card-based layouts ───────────────────────────────────── */
/* Font imports for redesigned views */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Redesigned page header */
.vt-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}
.vt-page-header h1 {
  font-family: 'Space Grotesk', var(--font-h, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text);
}
.vt-page-header .vt-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
}
@media (max-width: 575px) {
  .vt-page-header { flex-direction: column; align-items: stretch; }
  .vt-page-header > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
  .vt-page-header h1 { font-size: 1.25rem; }
}

/* Stat grid */
.vt-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.vt-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) {
  .vt-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vt-stat-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vt-stat { padding: 14px 16px; }
  .vt-stat-value { font-size: 1.5rem; }
}

/* Redesigned stat card */
.vt-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.vt-stat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vt-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.vt-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1;
  color: var(--text);
}
.vt-stat-value .vt-unit {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 3px;
}
.vt-stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* VT Card */
.vt-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.vt-card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vt-card-head-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.vt-card-body { padding: 22px 26px; }
@media (max-width: 575px) {
  .vt-card-body { padding: 16px; }
  .vt-card-head { padding: 12px 16px; }
}

/* 2-col quick layout */
.vt-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 767px) { .vt-quick-grid { grid-template-columns: 1fr; } }

/* Quick action item */
.vt-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  width: 100%;
  text-decoration: none;
  transition: border-color .15s;
}
.vt-quick-item:hover {
  border-color: var(--primary);
  color: var(--text);
}
.vt-quick-item .vt-quick-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: auto;
}

/* Submission card (pending/flagged) */
.vt-submission {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: outline .15s;
}
@media (max-width: 575px) {
  .vt-submission { padding: 14px 16px; }
  .vt-submission-top { flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
  .vt-submission-hours { font-size: 1.125rem; }
  .vt-pill-btn { font-size: 0.8125rem; padding: 9px; }
}
.vt-submission.vt-selected {
  outline: 2px solid var(--primary);
}
.vt-submission-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.vt-submission-meta {
  flex: 1;
  min-width: 0;
}
.vt-submission-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
}
.vt-submission-details {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.vt-submission-verifier {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1px;
}
.vt-submission-hours {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}
.vt-submission-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-style: italic;
  border-left: 3px solid var(--border);
}
.vt-submission-actions {
  display: flex;
  gap: 10px;
}

/* Pill buttons */
.vt-pill-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 99px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.vt-pill-approve {
  background: var(--success-bg);
  color: var(--success);
}
.vt-pill-approve:hover { background: var(--success); color: #fff; }
.vt-pill-reject {
  background: var(--danger-bg);
  color: var(--danger);
}
.vt-pill-reject:hover { background: var(--danger); color: #fff; }

/* Progress bar (thin) */
.vt-bar-wrap {
  height: 5px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.vt-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
  transition: width 0.6s ease;
}

/* Member progress row */
.vt-member-row {
  padding: 13px 20px;
  display: grid;
  grid-template-columns: 32px 1fr 80px 80px;
  gap: 12px;
  align-items: center;
}
.vt-member-row + .vt-member-row {
  border-top: 1px solid var(--border);
}
@media (max-width: 575px) {
  .vt-member-row {
    grid-template-columns: 28px 1fr 60px;
    padding: 11px 14px;
    gap: 8px;
  }
  .vt-member-status { display: none; }
}
.vt-member-info {
  min-width: 0;
}
.vt-member-name {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.vt-member-hours {
  text-align: right;
}
.vt-member-hours-val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
}
.vt-member-hours-goal {
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.vt-member-status {
  text-align: right;
}
.vt-pill-done {
  background: var(--success-bg);
  color: var(--success);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-block;
}
.vt-pill-active {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-block;
}

/* Date tile (for opportunities) */
.vt-date-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vt-date-month {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vt-date-day {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
}

/* Opportunity row */
.vt-opp-row {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vt-opp-row + .vt-opp-row {
  border-top: 1px solid var(--border);
}
.vt-opp-info { flex: 1; min-width: 0; }
.vt-opp-title { font-weight: 500; font-size: 0.875rem; margin-bottom: 2px; }
.vt-opp-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Registration card */
.vt-reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.vt-reg-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.vt-reg-info { flex: 1; }
.vt-reg-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
}
.vt-reg-email {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.vt-reg-date {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1px;
}

/* Bulk bar */
.vt-bulk-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vt-bulk-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex: 1;
}

/* Verified email row */
.vt-verified-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vt-verified-row + .vt-verified-row {
  border-top: 1px solid var(--border);
}
.vt-verified-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  flex-shrink: 0;
}

/* Audit log entry */
.vt-audit-row {
  padding: 13px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.vt-audit-row + .vt-audit-row {
  border-top: 1px solid var(--border);
}
.vt-audit-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Announcement banner */
.vt-ann-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
}

/* Flagged warning */
.vt-flagged-warn {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}

/* Section title (Space Grotesk) */
.vt-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 14px;
}

/* VT small action btn */
.vt-action-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.6875rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: border-color .15s;
}
.vt-action-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.vt-action-btn-danger {
  background: var(--danger-bg);
  border: none;
  color: var(--danger);
}
.vt-action-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Student roster grid row */
.vt-roster-row {
  padding: 13px 20px;
  display: grid;
  grid-template-columns: 32px 1fr 110px 70px 80px 100px;
  gap: 12px;
  align-items: center;
}
.vt-roster-row + .vt-roster-row {
  border-top: 1px solid var(--border);
}
.vt-roster-head {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr 110px 70px 80px 100px;
  gap: 12px;
  align-items: center;
}
.vt-roster-head span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
@media (max-width: 767px) {
  .vt-roster-row, .vt-roster-head {
    grid-template-columns: 32px 1fr 80px 60px;
    padding: 12px 14px;
    gap: 8px;
  }
  .vt-roster-row > :nth-child(5),
  .vt-roster-row > :nth-child(6),
  .vt-roster-head > :nth-child(5),
  .vt-roster-head > :nth-child(6) { display: none; }
}
@media (max-width: 480px) {
  .vt-roster-row, .vt-roster-head {
    grid-template-columns: 28px 1fr 64px;
    padding: 11px 12px;
  }
  .vt-roster-row > :nth-child(4),
  .vt-roster-head > :nth-child(4) { display: none; }
}

/* Dark mode for new VT components */
[data-theme="dark"] .vt-card { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-stat { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-submission { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-reg-card { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-quick-item { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="dark"] .vt-quick-item:hover { border-color: var(--primary) !important; }
[data-theme="dark"] .vt-submission-desc { background: var(--surface-2) !important; }
[data-theme="dark"] .vt-bar-wrap { background: var(--surface-2) !important; }
[data-theme="dark"] .vt-date-tile { background: var(--surface-2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-audit-icon { background: var(--surface-2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-ann-banner { background: rgba(245,158,11,0.12) !important; border-color: var(--border) !important; }
[data-theme="dark"] .vt-bulk-bar { background: var(--surface) !important; border-color: var(--border) !important; }

/* ── Map container ───────────────────────────────────────────────────────── */
#map {
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── Color preview swatches ──────────────────────────────────────────────── */
.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  display: inline-block;
}

/* ── Select2 overrides ───────────────────────────────────────────────────── */
.select2-container--bootstrap-5 .select2-selection {
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
}

.select2-container--bootstrap-5 .select2-selection:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important;
}

/* ── Org Sidebar (Discord-style) ────────────────────────────────────────── */
.org-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 100vh;
  background: #202225;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
  z-index: 1060;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  border-right: 1px solid #2D2F34;
}
.org-sidebar::-webkit-scrollbar { display: none; }

/* Shift entire page to the right */
body.has-org-sidebar {
  padding-left: 56px;
}
body.has-org-sidebar .navbar {
  margin-left: 0;
  width: 100%;
  padding-left: 64px;
}

.org-sidebar-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-radius 0.15s ease, background 0.15s ease;
  background: #36393F;
  color: #DCDDDE;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: none;
  flex-shrink: 0;
  overflow: hidden;
}
.org-sidebar-icon:hover {
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}
.org-sidebar-icon.active,
.org-sidebar-icon.active:disabled {
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  opacity: 1;
  cursor: default;
}

/* Active indicator pill on left edge */
.org-sidebar-icon.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 28px;
  border-radius: 0 3px 3px 0;
  background: #fff;
}
.org-sidebar-icon:not(.active):hover::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  border-radius: 0 3px 3px 0;
  background: #fff;
  opacity: 0.5;
}

.org-sidebar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-sidebar-divider {
  width: 24px;
  height: 2px;
  background: #36393F;
  border-radius: 1px;
  flex-shrink: 0;
  margin: 2px 0;
}

.org-sidebar-add {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #36393F;
  color: #3BA55D;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-radius 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  border: none;
  flex-shrink: 0;
}
.org-sidebar-add:hover {
  border-radius: 12px;
  background: #3BA55D;
  color: #fff;
}

/* Tooltip for sidebar icons */
.org-sidebar-icon[data-tooltip],
.org-sidebar-add[data-tooltip] {
  position: relative;
}
.org-sidebar-icon[data-tooltip]:hover::after,
.org-sidebar-add[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #18191C;
  color: #DCDDDE;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.24);
  animation: orgTooltipIn 0.1s ease;
}
@keyframes orgTooltipIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Mobile: collapse sidebar to bottom bar */
@media (max-width: 767.98px) {
  .org-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    flex-direction: row;
    padding: 4px 8px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid #2D2F34;
    border-right: none;
  }
  body.has-org-sidebar {
    padding-left: 0;
    padding-bottom: 52px;
  }
  body.has-org-sidebar .navbar {
    margin-left: 0;
    padding-left: 0 !important;
    width: 100%;
  }
  .org-sidebar-icon {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
  .org-sidebar-add {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .org-sidebar-divider {
    width: 2px;
    height: 20px;
  }
  .org-sidebar-icon.active::before,
  .org-sidebar-icon:not(.active):hover::before {
    display: none;
  }
  .org-sidebar-icon[data-tooltip]:hover::after,
  .org-sidebar-add[data-tooltip]:hover::after {
    display: none;
  }
  #feedback-toggle { bottom: 68px !important; }
  #feedback-panel { bottom: 124px !important; }
}

/* ── Dark Mode ─────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg:         #111827;
  --surface:    #1F2937;
  --surface-2:  #374151;
  --border:     #4B5563;
  --text:       #F9FAFB;
  --text-muted: #D1D5DB;
  --text-light: #9CA3AF;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.35), 0 2px 4px -2px rgba(0,0,0,.25);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.3);
  --success:    #34D399;
  --warning:    #FBBF24;
  --danger:     #F87171;
  --success-bg:    rgba(16,185,129,0.18);
  --success-text:  #6EE7B7;
  --success-border:#065F46;
  --danger-bg:     rgba(239,68,68,0.18);
  --danger-text:   #FCA5A5;
  --danger-border: #991B1B;
  --warning-bg:    rgba(245,158,11,0.18);
  --warning-text:  #FDE68A;
  --warning-border:#92400E;
  --info-bg:       rgba(79,70,229,0.18);
  --info-text:     #A5B4FC;
  --info-border:   #4338CA;
}

/* ── Base elements ── */
[data-theme="dark"] body { background: var(--bg) !important; color: var(--text) !important; }
[data-theme="dark"] html { background-color: var(--bg) !important; }

/* ── Navbar ── */
[data-theme="dark"] .navbar { background: var(--surface) !important; border-bottom-color: var(--border) !important; }
[data-theme="dark"] .navbar .nav-link { color: var(--text-muted) !important; }
[data-theme="dark"] .navbar .nav-link:hover,
[data-theme="dark"] .navbar .nav-link.active { color: var(--text) !important; }
[data-theme="dark"] .user-pill { color: var(--text) !important; }

/* ── Cards ── */
[data-theme="dark"] .card { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="dark"] .card-body { background: var(--surface) !important; color: var(--text) !important; }
[data-theme="dark"] .card-header { background: var(--surface-2) !important; border-color: var(--border) !important; color: var(--text) !important; }
[data-theme="dark"] .table-card { background: var(--surface) !important; border-color: var(--border) !important; }

/* ── Tables ── */
[data-theme="dark"] .table { color: var(--text) !important; background: transparent !important; }
[data-theme="dark"] .table thead th { background: var(--surface-2) !important; color: var(--text-muted) !important; border-color: var(--border) !important; }
[data-theme="dark"] .table td { border-color: var(--border) !important; color: var(--text) !important; background: transparent !important; }
[data-theme="dark"] .table tbody tr { background: var(--surface) !important; }
[data-theme="dark"] .table-hover tbody tr:hover { background: var(--surface-2) !important; }
[data-theme="dark"] .leaderboard-current { background: rgba(79,70,229,0.2) !important; }
[data-theme="dark"] .leaderboard-current td { color: var(--text) !important; }

/* ── Forms ── */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background: var(--surface) !important; color: var(--text) !important; border-color: var(--primary) !important; }
[data-theme="dark"] .form-control::placeholder { color: var(--text-light) !important; }
[data-theme="dark"] .input-group-text { background: var(--surface-2) !important; color: var(--text-muted) !important; border-color: var(--border) !important; }
[data-theme="dark"] .form-label { color: var(--text) !important; }
[data-theme="dark"] .form-check-label { color: var(--text) !important; }

/* ── Dropdowns ── */
[data-theme="dark"] .dropdown-menu { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .dropdown-item { color: var(--text) !important; }
[data-theme="dark"] .dropdown-item:hover { background: var(--surface-2) !important; }
[data-theme="dark"] .dropdown-item-text { color: var(--text-muted) !important; }
[data-theme="dark"] .dropdown-divider { border-color: var(--border) !important; }

/* ── Alerts & Banners — dark mode versions of light-bg banners ── */
[data-theme="dark"] .alert { border-color: var(--border) !important; }
[data-theme="dark"] .alert-success { background: rgba(16,185,129,0.15) !important; color: #6EE7B7 !important; border-color: #065F46 !important; }
[data-theme="dark"] .alert-danger { background: rgba(239,68,68,0.15) !important; color: #FCA5A5 !important; border-color: #991B1B !important; }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,0.15) !important; color: #FDE68A !important; border-color: #92400E !important; }
/* Inline alert-style banners (the ones using inline background colors) */
[data-theme="dark"] .dismissible-banner { background: var(--surface-2) !important; border-color: var(--border) !important; }
[data-theme="dark"] .dismissible-banner * { color: var(--text) !important; }

/* ── Stat cards/icons (common pattern: light bg + colored icon) ── */
[data-theme="dark"] .stat-icon { opacity: 0.85; }
[data-theme="dark"] .stat-card { background: var(--surface) !important; }

/* ── Badges — override all inline badge backgrounds for dark mode ── */
[data-theme="dark"] .badge { border: 1px solid rgba(255,255,255,0.1); }
[data-theme="dark"] .badge-pending { background: rgba(245,158,11,0.18) !important; color: #FDE68A !important; }
[data-theme="dark"] .badge-approved { background: rgba(16,185,129,0.18) !important; color: #6EE7B7 !important; }
[data-theme="dark"] .badge-rejected { background: rgba(239,68,68,0.18) !important; color: #FCA5A5 !important; }
[data-theme="dark"] .badge-flagged { background: rgba(239,68,68,0.18) !important; color: #FCA5A5 !important; }

/* ── Buttons ── */
[data-theme="dark"] .btn-outline-secondary { color: var(--text-muted) !important; border-color: var(--border) !important; }
[data-theme="dark"] .btn-outline-secondary:hover { background: var(--surface-2) !important; color: var(--text) !important; }
[data-theme="dark"] .btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }

/* ── Footer ── */
[data-theme="dark"] footer { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text-muted) !important; }
[data-theme="dark"] footer * { color: inherit !important; }

/* ── Misc ── */
[data-theme="dark"] .text-muted { color: #D1D5DB !important; }
[data-theme="dark"] .text-danger { color: #FCA5A5 !important; }
[data-theme="dark"] .lead { color: #D1D5DB !important; }
[data-theme="dark"] .empty-state { color: #D1D5DB !important; }
[data-theme="dark"] .modal-content { background: var(--surface) !important; color: var(--text) !important; }
[data-theme="dark"] .page-link { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; }
[data-theme="dark"] .list-group-item { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; }
[data-theme="dark"] .list-group-item-action:hover { background: var(--surface-2) !important; }
[data-theme="dark"] code { background: var(--surface-2) !important; color: #93C5FD !important; }
[data-theme="dark"] a { color: #93C5FD; }
[data-theme="dark"] a:hover { color: #BFDBFE; }
[data-theme="dark"] .btn-primary { color: #fff !important; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--text) !important; }

/* ── Override ALL inline style colors on major containers ── */
/* This catches the 200+ hardcoded inline styles in views */
[data-theme="dark"] .container [style*="color:#0F172A"],
[data-theme="dark"] .container [style*="color:#1E293B"],
[data-theme="dark"] .container [style*="color:#1E3A8A"],
[data-theme="dark"] .container [style*="color:#1E40AF"],
[data-theme="dark"] .container [style*="color:#1D4ED8"],
[data-theme="dark"] .container [style*="color:#78350F"],
[data-theme="dark"] .container [style*="color:#92400E"],
[data-theme="dark"] .container [style*="color:#5B21B6"],
[data-theme="dark"] .container [style*="color:#6B21A8"],
[data-theme="dark"] .container [style*="color:#3730A3"] { color: var(--text) !important; }

[data-theme="dark"] .container [style*="color:#64748B"],
[data-theme="dark"] .container [style*="color:#475569"],
[data-theme="dark"] .container [style*="color:#94A3B8"] { color: #D1D5DB !important; }

/* Light backgrounds → dark surface */
[data-theme="dark"] .container [style*="background:#F1F5F9"],
[data-theme="dark"] .container [style*="background:#F8FAFC"],
[data-theme="dark"] .container [style*="background-color:#F1F5F9"],
[data-theme="dark"] .container [style*="background-color:#F8FAFC"] { background: var(--surface-2) !important; }

/* Colored light backgrounds → darker tinted versions */
[data-theme="dark"] .container [style*="background:#EEF2FF"],
[data-theme="dark"] .container [style*="background:#EFF6FF"],
[data-theme="dark"] .container [style*="background:#DBEAFE"] { background: rgba(79,70,229,0.15) !important; }

[data-theme="dark"] .container [style*="background:#F0FDF4"],
[data-theme="dark"] .container [style*="background:#D1FAE5"] { background: rgba(16,185,129,0.15) !important; }

[data-theme="dark"] .container [style*="background:#FFFBEB"],
[data-theme="dark"] .container [style*="background:#FEF3C7"] { background: rgba(245,158,11,0.15) !important; }

[data-theme="dark"] .container [style*="background:#FEE2E2"],
[data-theme="dark"] .container [style*="background:#FFF1F2"],
[data-theme="dark"] .container [style*="background:#FFF5F5"] { background: rgba(239,68,68,0.15) !important; }

[data-theme="dark"] .container [style*="background:#FAF5FF"],
[data-theme="dark"] .container [style*="background:#FAF5FF"] { background: rgba(124,58,237,0.15) !important; }

/* Colored text on those backgrounds — lighten them */
[data-theme="dark"] .container [style*="color:#4F46E5"] { color: #818CF8 !important; }
[data-theme="dark"] .container [style*="color:#3B82F6"] { color: #93C5FD !important; }
[data-theme="dark"] .container [style*="color:#2563EB"] { color: #93C5FD !important; }
[data-theme="dark"] .container [style*="color:#10B981"] { color: #6EE7B7 !important; }
[data-theme="dark"] .container [style*="color:#166534"],
[data-theme="dark"] .container [style*="color:#065F46"] { color: #6EE7B7 !important; }
[data-theme="dark"] .container [style*="color:#F59E0B"] { color: #FCD34D !important; }
[data-theme="dark"] .container [style*="color:#7C3AED"],
[data-theme="dark"] .container [style*="color:#8B5CF6"] { color: #C4B5FD !important; }
[data-theme="dark"] .container [style*="color:#E11D48"],
[data-theme="dark"] .container [style*="color:#9F1239"],
[data-theme="dark"] .container [style*="color:#991B1B"],
[data-theme="dark"] .container [style*="color:#DC2626"] { color: #FCA5A5 !important; }
[data-theme="dark"] .container [style*="color:#EA580C"] { color: #FDBA74 !important; }

/* Alert banners with inline backgrounds + borders */
[data-theme="dark"] .container .alert[style*="background:#EFF6FF"],
[data-theme="dark"] .container .alert[style*="background:#FAF5FF"],
[data-theme="dark"] .container div[style*="background:#EFF6FF"],
[data-theme="dark"] .container div[style*="background:#FAF5FF"],
[data-theme="dark"] .container div[style*="background:#FEF3C7"],
[data-theme="dark"] .container div[style*="background:linear-gradient"] {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

/* Make sure border colors on inline-styled elements get overridden */
[data-theme="dark"] .container [style*="border:1.5px solid #FCD34D"],
[data-theme="dark"] .container [style*="border:1.5px solid #BFDBFE"],
[data-theme="dark"] .container [style*="border:1.5px solid #D8B4FE"],
[data-theme="dark"] .container [style*="border:1px solid #E2E8F0"],
[data-theme="dark"] .container [style*="border:1px solid #BBF7D0"],
[data-theme="dark"] .container [style*="border:1px solid #FCA5A5"],
[data-theme="dark"] .container [style*="border-color:#BFDBFE"],
[data-theme="dark"] .container [style*="border-color:#FCA5A5"] { border-color: var(--border) !important; }

/* Feedback widget */
[data-theme="dark"] #feedback-panel { background: var(--surface) !important; }
[data-theme="dark"] #feedback-panel textarea,
[data-theme="dark"] #feedback-panel select { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--border) !important; }

/* Billing overlay modal with inline styles */
[data-theme="dark"] .modal [style*="background:#FEE2E2"] { background: rgba(239,68,68,0.15) !important; }
[data-theme="dark"] .modal [style*="background:#F8FAFC"] { background: var(--surface-2) !important; }
[data-theme="dark"] .modal [style*="color:#1E293B"] { color: var(--text) !important; }

/* Auth pages (icon circles) */
[data-theme="dark"] .auth-icon-wrap { background: rgba(79,70,229,0.15) !important; }
[data-theme="dark"] .container [style*="background:#EEF2FF;display:flex;align-items:center;justify-content:center"] { background: rgba(79,70,229,0.15) !important; }
[data-theme="dark"] .container [style*="background:#F0FDF4;display:flex;align-items:center;justify-content:center"] { background: rgba(16,185,129,0.15) !important; }

/* Feedback widget panel */
[data-theme="dark"] #feedback-panel > div:first-child { background: var(--primary) !important; }
[data-theme="dark"] #feedback-panel form { background: var(--surface) !important; }
[data-theme="dark"] #feedback-panel .btn-primary { color: #fff !important; }

/* Billing overlay */
[data-theme="dark"] .billing-overlay,
[data-theme="dark"] div[style*="background:#fff;"][style*="border-radius:16px"] { background: var(--surface) !important; color: var(--text) !important; }

/* Verify hours result pages */
[data-theme="dark"] div[style*="background:#D1FAE5"] { background: rgba(16,185,129,0.15) !important; }
[data-theme="dark"] div[style*="background:#FEE2E2"]:not(.container *) { background: rgba(239,68,68,0.15) !important; }

/* Organizations page badges */
[data-theme="dark"] [style*="background:#FEF3C7;color:#92400E"] { background: var(--warning-bg) !important; color: var(--warning-text) !important; }

/* Org sidebar (already dark, but ensure consistency) */
[data-theme="dark"] .org-sidebar { background: #0D1117 !important; }
