* { box-sizing: border-box; }

:root {
  --bg0: #05060a;
  --bg1: #090b12;
  --panel: rgba(255, 255, 255, 0.04);
  --panel2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);

  --maxw: 1480px;
  --radius: 16px;
  --radius-sm: 12px;

  --neonA: #00e5ff;
  --neonB: #b026ff;
  --neonC: #22c55e;
  --danger: #ff2d55;

  --shadow: 0 20px 70px rgba(0,0,0,0.55);
}

html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 800px at 12% 8%, rgba(176, 38, 255, 0.22), transparent 60%),
    radial-gradient(900px 700px at 88% 18%, rgba(0, 229, 255, 0.18), transparent 60%),
    radial-gradient(700px 600px at 62% 92%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body > header,
body > .container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

header { margin-bottom: 18px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 10px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.85), rgba(5, 6, 10, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand { display: flex; align-items: baseline; gap: 8px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 34px;
}

header strong {
  letter-spacing: 0.6px;
  text-shadow:
    0 0 14px rgba(0, 229, 255, 0.20),
    0 0 22px rgba(176, 38, 255, 0.16);
}

.topnav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.18);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(176, 38, 255, 0.12));
  border-color: rgba(0, 229, 255, 0.30);
  color: rgba(255, 255, 255, 0.92);
}

.nav-ico,
.btn-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.nav-ico svg,
.btn-ico svg {
  width: 16px;
  height: 16px;
}

.muted { color: var(--muted); }

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.55), rgba(176, 38, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

h1 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--muted);
}

input,
select,
textarea {
  width: min(420px, 100%);
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.20);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow:
    0 0 0 4px rgba(0, 229, 255, 0.12),
    0 0 22px rgba(176, 38, 255, 0.12);
}

textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}

button {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(176, 38, 255, 0.16));
  color: var(--text);
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(0, 229, 255, 0),
    0 10px 30px rgba(0,0,0,0.35);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, filter 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.75);
  box-shadow:
    0 0 0 4px rgba(0, 229, 255, 0.10),
    0 0 28px rgba(176, 38, 255, 0.16),
    0 12px 35px rgba(0,0,0,0.38);
}

button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

button.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

button .btn-ico {
  margin-right: 8px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.notice {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge--draft {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.badge--submitted {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.12);
}

.badge--approved {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.badge--rejected {
  border-color: rgba(255, 45, 85, 0.30);
  background: rgba(255, 45, 85, 0.10);
  color: rgba(255, 45, 85, 0.92);
}

a.secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, filter 140ms ease;
}

a.secondary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 0 0 4px rgba(0, 229, 255, 0.10),
    0 0 28px rgba(176, 38, 255, 0.16);
}

.table-wrap {
  overflow: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
}

table.table th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

table.table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

th {
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: space-between;
  }

  .topnav {
    border-radius: 16px;
  }
}

.error {
  color: rgba(255, 45, 85, 0.95);
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 45, 85, 0.35);
  background: rgba(255, 45, 85, 0.10);
}

a {
  color: rgba(0, 229, 255, 0.92);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
