:root {
  --brand-900: #0f172a;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --accent-600: #0f766e;
  --surface: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: #0f172a;
}

.glass {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-gradient {
  background:
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, .24), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(20, 184, 166, .18), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #172554 55%, #0f766e 100%);
}

.shadow-soft {
  box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.card-hover {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .12);
}

.toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  width: min(92vw, 380px);
}

.toast {
  border: 1px solid rgba(148, 163, 184, .25);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
  animation: toast-in .22s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

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

.modal-backdrop {
  background: rgba(15, 23, 42, .58);
  backdrop-filter: blur(4px);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-hover {
    transition: none;
  }
  .toast {
    animation: none;
  }
  .skeleton {
    animation: none;
  }
}
