@import "tailwindcss";

:root {
  --bg: #0b0e14;
  --bg-elevated: #141a24;
  --ink: #eef1f5;
  --muted: #9aa3b5;
  --gold: #c9852a;
  --gold-soft: rgba(201, 133, 42, 0.18);
  --flame: #b84a1a;
  --neela: #3d5a9a;
  --neela-soft: rgba(61, 90, 154, 0.28);
  --line: rgba(238, 241, 245, 0.12);
  --danger: #e07050;
  --ok: #4a9b7a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

@theme inline {
  --color-bg: var(--bg);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-gold: var(--gold);
  --font-sans: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 90, 154, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(184, 74, 26, 0.12), transparent),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: #0b0e14;
}

.font-display {
  font-family: var(--font-display);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #e0a84a);
  color: #0b0e14;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: rgba(238, 241, 245, 0.06);
  color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field input::placeholder {
  color: rgba(154, 163, 181, 0.55);
}

.alert-error {
  background: rgba(224, 112, 80, 0.12);
  border: 1px solid rgba(224, 112, 80, 0.35);
  color: #f0b8a4;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.admin-table tbody tr:hover td {
  background: rgba(201, 133, 42, 0.05);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}
