/*
 * Main stylesheet for the Broward Lit Fair portal.
 *
 * This file defines a modern dark theme using CSS variables and simple
 * components like cards, buttons, forms, tables, and a responsive grid.
 * The styles are shared across both coordinator and admin sections.
 */

:root{
  --bg:#0b0f19;
  --panel:#111827;
  --panel2:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --accent:#60a5fa;
  --danger:#f87171;
  --ok:#34d399;
  --border:rgba(255,255,255,.08);
  --shadow: 0 12px 40px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(96,165,250,.20), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(52,211,153,.12), transparent 60%),
              var(--bg);
  color:var(--text);
  min-height:100vh;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: rgba(15,23,42,.75);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index:100;
}
.brand{font-weight:800; letter-spacing:.4px}
.topbar-right{display:flex; gap:10px; align-items:center}
.topbar-user{color:var(--muted); font-size:14px}

.container{max-width:980px; margin:28px auto; padding:0 16px}

.card{
  background: linear-gradient(180deg, rgba(17,24,39,.95), rgba(15,23,42,.95));
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:18px;
  margin-bottom:18px;
}
.card h1,.card h2{margin:0 0 12px}
.card p{margin:10px 0; color:var(--muted)}

.grid{display:grid; gap:14px}
.grid-2{grid-template-columns: repeat(2, minmax(0, 1fr))}
@media(max-width:760px){.grid-2{grid-template-columns:1fr}}

label{display:block; font-size:13px; color:var(--muted); margin:10px 0 6px}
input, select, textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(2,6,23,.55);
  color:var(--text);
  outline:none;
  font-size:14px;
}
input:focus, select:focus, textarea:focus{border-color: rgba(96,165,250,.55)}

.btn{
  display:inline-block;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(96,165,250,.18);
  color:var(--text);
  cursor:pointer;
  text-align:center;
  line-height:1.2;
}
.btn:hover{filter:brightness(1.08)}
.btn-primary{background: rgba(96,165,250,.25)}
.btn-danger{background: rgba(248,113,113,.18)}
.btn-ghost{background: rgba(255,255,255,.04)}
.btn-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.notice{
  padding:12px; border-radius:12px;
  border:1px solid var(--border);
  margin:12px 0;
}
.notice.ok{background: rgba(52,211,153,.12)}
.notice.err{background: rgba(248,113,113,.12)}
.small{font-size:13px; color:var(--muted)}

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:12px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table th{color:var(--muted); text-align:left; font-size:13px; background: rgba(255,255,255,.03)}
.table tr:hover td{background: rgba(255,255,255,.02)}

.footer{padding:26px 16px; color:var(--muted); text-align:center}
.footer-inner{opacity:.8}