:root {
  color-scheme: light dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dark {
  color-scheme: dark;
}

.hero-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
}

.status-dot {
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(248, 250, 252, 0.35);
  border-top-color: rgba(16, 185, 129, 0.95);
  animation: spin 0.8s linear infinite;
}

.toggle-circle {
    transition: transform 0.3s ease;
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
}

.theme-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable .sort-indicator {
  margin-left: 0.35rem;
  display: inline-block;
  font-size: 0.7rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

tbody tr[data-status="red"] {
  background: rgba(254, 226, 226, 0.6);
}

.dark tbody tr[data-status="red"] {
  background: rgba(127, 29, 29, 0.25);
}

tbody tr[data-status="orange"] {
  background: rgba(255, 237, 213, 0.6);
}

.dark tbody tr[data-status="orange"] {
  background: rgba(124, 45, 18, 0.3);
}

tbody tr[data-status="yellow"] {
  background: rgba(254, 240, 138, 0.55);
}

.dark tbody tr[data-status="yellow"] {
  background: rgba(113, 63, 18, 0.25);
}

tbody tr[data-status="green"] {
  background: rgba(209, 250, 229, 0.5);
}

.dark tbody tr[data-status="green"] {
  background: rgba(6, 95, 70, 0.25);
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 20;
  margin-top: 0.5rem;
  transform: translateX(-50%);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.45);
  white-space: pre-wrap;
  max-width: 24rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
