:root {
  --anthill-body: #0f172a;
  --anthill-surface: #111c33;
  --anthill-surface-dark: #0b1324;
  --anthill-panel: #1f2a3c;
  --anthill-border: rgba(255, 255, 255, 0.08);
  --anthill-primary: #2f8bfd;
  --anthill-primary-soft: rgba(47, 139, 253, 0.16);
  --anthill-warning-soft: rgba(255, 170, 0, 0.12);
  --anthill-success-soft: rgba(34, 197, 94, 0.12);
  --anthill-text: #e2e8f0;
  --anthill-text-muted: #94a3b8;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, sans-serif;
  background-color: var(--anthill-body);
  color: var(--anthill-text);
  min-height: 100vh;
}

.bg-surface {
  background: radial-gradient(circle at top, rgba(47, 139, 253, 0.2), transparent 55%),
    linear-gradient(180deg, #111c33 0%, #0f172a 100%);
}

.bg-surface-dark {
  background: linear-gradient(90deg, var(--anthill-surface-dark), #111c33);
}

.navbar .navbar-brand {
  letter-spacing: 0.08em;
}

.brand-logomark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--anthill-primary-soft);
  color: var(--anthill-primary);
  font-size: 1.25rem;
}

.card {
  background: rgba(17, 28, 51, 0.78);
  border: 1px solid var(--anthill-border);
  color: var(--anthill-text);
  backdrop-filter: blur(8px);
}

.card-elevated {
  background: rgba(17, 28, 51, 0.92);
  backdrop-filter: blur(12px);
}

.card-metric {
  background: rgba(17, 28, 51, 0.82);
}

.card-metric .text-muted {
  color: var(--anthill-text-muted) !important;
}

.main-content {
  background: linear-gradient(180deg, rgba(17, 28, 51, 0.85) 0%, rgba(17, 28, 51, 0.4) 100%);
}

.card-header {
  background-color: transparent;
}

.table {
  color: var(--anthill-text);
}

.table thead {
  background-color: rgba(255, 255, 255, 0.03);
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.table code {
  color: var(--anthill-primary);
  font-weight: 500;
}

.table input.form-control-sm {
  min-width: 12rem;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--anthill-border);
}

.badge.text-bg-dark {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-gradient {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, var(--anthill-primary), #045de9);
  box-shadow: 0 18px 45px rgba(47, 139, 253, 0.35);
  color: #fff;
}

.btn-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-gradient:hover::after {
  opacity: 1;
}

.btn-gradient:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(47, 139, 253, 0.35);
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--anthill-primary-soft);
  color: var(--anthill-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.alert {
  border: none;
  border-radius: 0.75rem;
}

.text-muted {
  color: var(--anthill-text-muted) !important;
}

.dropdown-menu {
  border-radius: 0.75rem;
  border: 1px solid var(--anthill-border);
  background-color: rgba(15, 23, 42, 0.98);
  color: var(--anthill-text);
  backdrop-filter: blur(12px);
}

.dropdown-item {
  color: var(--anthill-text);
}

.dropdown-item.disabled {
  opacity: 0.5;
}

.dropdown-menu .dropdown-divider {
  border-top-color: var(--anthill-border);
}

.table-responsive {
  border-radius: 0.75rem;
}

@media (max-width: 576px) {
  .navbar .navbar-brand {
    gap: 0.5rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .dropdown-menu {
    width: calc(100vw - 2rem);
  }
}
