:root {
  --brand: #2e798e;
  --brand-dark: #1f5665;
  --bg-light: #f3f6f8;
  --bg-dark: #0f172a;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Heebo', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: 'Montserrat', sans-serif;
}

.brand-gradient-bg {
  background: linear-gradient(120deg, #0a5f4d, #2e798e, #0b3f5f);
  background-size: 220% 220%;
  animation: brandShift 14s ease infinite;
}

@keyframes brandShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.soft-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.menu-gradient {
  background: linear-gradient(180deg, #ecfeff 0%, #e0f2fe 48%, #dcfce7 100%);
}

.dark .menu-gradient {
  background: linear-gradient(180deg, #082f3f 0%, #0d3b4d 48%, #11352b 100%);
}

.dark .soft-card {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.5);
}

.menu-item {
  transition: all 0.2s ease;
}

.fade-in {
  animation: fadeIn 0.35s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.progress-low {
  background: #10b981;
}

.progress-mid {
  background: #f59e0b;
}

.progress-high {
  background: #ef4444;
}

.dashboard-card {
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.1);
}

.dashboard-card .dash-metric {
  border-radius: 0.75rem;
}

.dashboard-card-low {
  background: linear-gradient(150deg, #ecfdf5, #d1fae5 55%, #a7f3d0);
  border-color: #6ee7b7;
}

.dashboard-card-mid {
  background: linear-gradient(150deg, #fffbeb, #fef3c7 55%, #fde68a);
  border-color: #fcd34d;
}

.dashboard-card-high {
  background: linear-gradient(150deg, #fff1f2, #ffe4e6 55%, #fecdd3);
  border-color: #fda4af;
}

.dashboard-card-low .dash-metric,
.dashboard-card-mid .dash-metric,
.dashboard-card-high .dash-metric {
  background: rgba(255, 255, 255, 0.6);
}

.dark .dashboard-card-low {
  background: linear-gradient(150deg, #052e2b, #064e3b 55%, #065f46);
  border-color: #10b981;
}

.dark .dashboard-card-mid {
  background: linear-gradient(150deg, #3f2a06, #78350f 55%, #92400e);
  border-color: #f59e0b;
}

.dark .dashboard-card-high {
  background: linear-gradient(150deg, #3f0b0b, #7f1d1d 55%, #991b1b);
  border-color: #ef4444;
}

.dark .dashboard-card .dash-metric {
  background: rgba(15, 23, 42, 0.38);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: #0f172a;
}

*::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

*::-webkit-scrollbar-thumb:hover {
  background: #1e293b;
}

.dark *::-webkit-scrollbar-track {
  background: #020617;
}

.dark *::-webkit-scrollbar-thumb {
  background: #475569;
  border-color: #020617;
}

.dark *::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-gutter: stable both-edges;
}

.table-scroll > table {
  min-width: 100%;
}

.table-scroll-note {
  margin-top: 0.25rem;
  padding: 0 0.25rem 0.25rem;
}

.table-scroll-note-text {
  font-size: 0.68rem;
  line-height: 1;
  color: #64748b;
}

.dark .table-scroll-note-text {
  color: #94a3b8;
}

.table-scroll-note-bar {
  margin-top: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dark .table-scroll-note-bar {
  background: #334155;
}

.table-scroll-note-thumb {
  width: 3.25rem;
  height: 100%;
  border-radius: 999px;
  background: #2e798e;
  animation: tableHintSlide 1.9s ease-in-out infinite;
}

@keyframes tableHintSlide {
  0% {
    transform: translateX(0);
    opacity: 0.9;
  }

  50% {
    transform: translateX(1.4rem);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 0.9;
  }
}

.sidebar-logo {
  transition: height 0.2s ease, max-width 0.2s ease, transform 0.2s ease;
}

.sidebar-collapsed .sidebar-label,
.sidebar-collapsed .sidebar-brand-text {
  display: none;
}

.sidebar-collapsed .sidebar-logo {
  height: 2rem;
  max-width: 2rem;
}

.sidebar-collapsed #campers-submenu {
  display: none !important;
}

.sidebar-collapsed #sidebar {
  width: 5rem;
}

.sidebar-collapsed #main-content {
  margin-left: 5rem;
}

@media (max-width: 1024px) {
  #main-content {
    margin-left: 0 !important;
  }

  #sidebar {
    transform: translateX(-100%);
  }

  body.mobile-sidebar-open #sidebar {
    transform: translateX(0);
  }
}

.toast {
  animation: toastIn 0.3s ease;
}

.dashboard-home-icon {
  display: none;
}

.sidebar-collapsed .dashboard-home-icon {
  display: inline-flex !important;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
