/* public/assets/app.css */
:root{
  --bg: #0b1220;
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.78);
  --line: rgba(234,240,255,.12);
  --accent: #4f8cff;
  --accent2: #62d6a9;
  --danger: #ff4d6d;

  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.28);

  --max: 1040px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(79,140,255,.33), transparent 60%),
    radial-gradient(800px 450px at 90% 10%, rgba(98,214,169,.20), transparent 55%),
    linear-gradient(180deg, #070b14 0%, #0b1220 100%);
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,11,20,.85) 0%, rgba(7,11,20,.45) 100%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}
.brand {
  display:flex;
  align-items:center;
  gap:.7rem;
  font-weight: 900;
  letter-spacing:.3px;
}
.brand::before {
  content:"";
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(79,140,255,1), rgba(98,214,169,1));
  box-shadow: 0 10px 25px rgba(79,140,255,.25);
  display:inline-block;
}

nav { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; }

/* Nav links */
a.nav {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding: .45rem .75rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: .15s ease;
}
a.nav:hover { transform: translateY(-1px); color: var(--text); border-color: rgba(234,240,255,.22); }
a.nav.active { color: var(--text); border-color: rgba(79,140,255,.55); background: rgba(79,140,255,.10); }

/* Status */
.status {
  display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; justify-content:flex-end;
  color: var(--muted);
  font-size: .92rem;
}
.status code {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  padding: .2rem .45rem;
  border-radius: 10px;
}

/* Logout button */
button.link {
  border: 1px solid rgba(255,77,109,.55);
  background: linear-gradient(180deg, rgba(255,77,109,.22), rgba(255,77,109,.08));
  color: var(--text);
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: .15s ease;
}
button.link:hover { transform: translateY(-1px); border-color: rgba(255,77,109,.75); }

/* Shared UI */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.msg { padding: .85rem 1rem; border-radius: 14px; margin: .75rem 0; border: 1px solid var(--line); }
.msg.err { background: rgba(255,77,109,.10); border-color: rgba(255,77,109,.35); }
.msg.ok  { background: rgba(98,214,169,.10); border-color: rgba(98,214,169,.35); }

label { display:block; margin: .55rem 0 .25rem; font-weight: 800; color: var(--text); }
input[type="text"], input[type="email"], textarea {
  width:100%;
  padding: .72rem .85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(234,240,255,.45); }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(79,140,255,.55); box-shadow: 0 0 0 4px rgba(79,140,255,.12); }

table { width:100%; border-collapse: collapse; margin-top: .75rem; overflow:hidden; border-radius: 14px; }
thead th {
  text-align:left; font-size: .9rem; color: rgba(234,240,255,.85);
  padding: .65rem .65rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
td {
  padding: .65rem .65rem;
  border-bottom: 1px solid rgba(234,240,255,.08);
  color: rgba(234,240,255,.9);
}
tr:hover td { background: rgba(255,255,255,.02); }

@media (max-width: 900px) {
  .topbar-inner { flex-direction: column; align-items:flex-start; }
  .status { width:100%; justify-content:space-between; }
}

button.danger{
  border: 1px solid rgba(255,77,109,.55);
  background: linear-gradient(180deg, rgba(255,77,109,.22), rgba(255,77,109,.08));
  color: var(--text);
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
button.danger:hover{ transform: translateY(-1px); border-color: rgba(255,77,109,.75); }