body {
  color: #e9eefc;
  min-height: 100vh;
  background: #0b1220;
  overflow-x: hidden;
}


body::before {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: -2;

  background:
    radial-gradient(700px circle at 10% 15%, rgba(13,110,253,0.22), transparent 55%),
    radial-gradient(800px circle at 85% 20%, rgba(25,135,84,0.20), transparent 55%),
    radial-gradient(900px circle at 50% 90%, rgba(111,66,193,0.18), transparent 60%),
    linear-gradient(120deg, rgba(13,110,253,0.12), rgba(25,135,84,0.10), rgba(111,66,193,0.12));

  filter: blur(30px) saturate(120%);
  animation: floatBG 14s ease-in-out infinite alternate;
}

@keyframes floatBG {
  0%   { transform: translate(-2%, -1%) scale(1.0) rotate(0deg); }
  100% { transform: translate(2%, 1%) scale(1.05) rotate(6deg); }
}


.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 34px rgba(0,0,0,0.38);
  backdrop-filter: blur(12px);
}


.form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.55) !important;
  opacity: 1;
}

.form-control:focus {
  background: rgba(255,255,255,0.10);
  border-color: rgba(13,110,253,0.65);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
  color: #fff;
}


.table {
  --bs-table-bg: transparent;
  --bs-table-color: #e9eefc;
  --bs-table-border-color: rgba(255,255,255,0.10);
}

.table-hover tbody tr {
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.table-hover tbody tr:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25),
              0 0 0 1px rgba(13,110,253,0.16);
}

.table-hover tbody tr:hover td {
  color: #fff !important;
}

.fade-in {
  animation: fadeInUp 220ms ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sticky-top-blur {
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.muted { color: rgba(233,238,252,0.7); }

html { scroll-behavior: smooth; }

/* -------- Toasts -------- */
.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

.toast {
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  background: rgba(20, 20, 30, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-8px);
  opacity: 0;
  animation: toast-in 220ms ease-out forwards;
}

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

.toast.out {
  animation: toast-out 200ms ease-in forwards;
}

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

.toast .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.toast .title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.toast .msg {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.toast .meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.toast .btn-x {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
}

.toast .btn-x:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

/* Variants */
.toast.success { border-color: rgba(80, 200, 140, 0.35); }
.toast.error   { border-color: rgba(255, 90, 110, 0.45); }
.toast.warn    { border-color: rgba(255, 190, 70, 0.45); }
.toast.info    { border-color: rgba(120, 180, 255, 0.45); }


/* Status checkbox badge */
.status-cell {
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.status-badge .box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 12px;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.04);
}

.status-badge.active {
  border-color: rgba(80, 200, 140, 0.35);
  background: rgba(80, 200, 140, 0.10);
}

.status-badge.active .box {
  border-color: rgba(80, 200, 140, 0.55);
  background: rgba(80, 200, 140, 0.15);
}

.status-badge.inactive {
  border-color: rgba(255, 190, 70, 0.35);
  background: rgba(255, 190, 70, 0.10);
}

.status-badge.inactive .box {
  border-color: rgba(255, 190, 70, 0.55);
  background: rgba(255, 190, 70, 0.12);
}

.status-badge .label {
  opacity: 0.9;
}

.pager-bottom {
  position: sticky;
  bottom: 0;
  padding-top: 12px;
}

.chevron {
  transition: transform 0.2s ease;
}

button[aria-expanded="false"] .chevron {
  transform: rotate(-90deg);
}