/* ConfirmShip UI layer — modern refresh on top of the compiled Tailwind base.
   Loaded after /cs-app.css; no build step needed. */

:root {
  --cs-bg: #060a08;
  --cs-surface: #0c1512;
  --cs-line: #1b2a24;
  --cs-ink: #eaf4ee;
  --cs-muted: #8aa79a;
  --cs-accent: #25d366;
  --cs-radius: 16px;
}

body {
  background:
    radial-gradient(900px 480px at 78% -12%, rgba(37, 211, 102, 0.10), transparent 62%),
    radial-gradient(700px 420px at 8% 4%, rgba(37, 211, 102, 0.05), transparent 60%),
    var(--cs-bg);
  letter-spacing: -0.006em;
}

::selection { background: rgba(37, 211, 102, 0.28); }

#cs-sidebar {
  background: linear-gradient(180deg, rgba(14, 26, 21, 0.96), rgba(8, 14, 11, 0.98));
  backdrop-filter: blur(8px);
}
#cs-sidebar nav a {
  position: relative;
  transition: background-color .15s ease, color .15s ease;
}
#cs-sidebar nav a.bg-cs-surface::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: var(--cs-accent);
}

.rounded-xl { border-radius: var(--cs-radius); }
.rounded-lg { border-radius: 12px; }
.bg-cs-surface { background: linear-gradient(180deg, rgba(16, 29, 24, 0.92), rgba(11, 20, 16, 0.92)); }
.border-cs-line { border-color: var(--cs-line); }

main .grid > div.rounded-xl,
main .grid > div.rounded-lg {
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
main .grid > div.rounded-xl:hover,
main .grid > div.rounded-lg:hover {
  border-color: rgba(37, 211, 102, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
main .grid > div .text-2xl,
main .grid > div .text-3xl {
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

table { border-collapse: separate; border-spacing: 0; }
thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 18, 15, 0.96);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--cs-line);
}
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: rgba(37, 211, 102, 0.045); }
tbody td { border-bottom: 1px solid rgba(27, 42, 36, 0.7); }

[class*="bg-yellow-500/15"] { box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.25); }
[class*="bg-cs-accent/15"] { box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.28); }
[class*="bg-red-500/15"] { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.25); }

button { transition: filter .15s ease, background-color .15s ease, border-color .15s ease; }
.bg-cs-accent { box-shadow: 0 6px 18px -10px rgba(37, 211, 102, 0.7); }
.bg-cs-accent:hover { filter: brightness(1.06); }
input, textarea, select { transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

h1 { letter-spacing: -0.028em; }

* { scrollbar-width: thin; scrollbar-color: #22352d transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #22352d; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }

@media (max-width: 640px) {
  main { padding-inline: 14px; }
  thead th { font-size: 10px; }
}
