/* public/styles.css */
:root{
  --bg:#0b0f14;
  --panel:#111824;
  --panel2:#0f1520;
  --text:#e6edf3;
  --muted:#9aa7b2;
  --border:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --red:#ff4d4d;
  --yellow:#ffcc00;
  --green:#31d17c;
  --accent:#7aa2ff;
  --accent2:#9b7aff;
  --focus:rgba(122,162,255,.30);
  --radius:16px;
  --radius2:22px;
}

*{ 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;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(122,162,255,.18), transparent 55%),
              radial-gradient(900px 650px at 110% 10%, rgba(155,122,255,.16), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{ color:inherit; }
button, input, select{ font:inherit; color:inherit; }
.app{ max-width:1180px; margin:0 auto; padding:18px 14px 36px; }

.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 14px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  position: sticky; top:10px; z-index:10;
  backdrop-filter: blur(8px);
}
.brand{ display:flex; align-items:center; gap:10px; }
.logo{
  width:34px;height:34px;border-radius:12px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent2), var(--accent));
  box-shadow: 0 8px 18px rgba(122,162,255,.25);
  border:1px solid rgba(255,255,255,.14);
}
.brand h1{ font-size:14px; margin:0; font-weight:800; }
.brand .sub{ margin-top:2px; font-size:12px; color:var(--muted); }

.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.06);
  padding: 9px 12px;
  border-radius: 14px;
  cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); }
.btn.primary{ background: rgba(122,162,255,.18); border-color: rgba(122,162,255,.35); }
.btn.primary:hover{ background: rgba(122,162,255,.24); }
.btn.danger{ background: rgba(255,77,77,.12); border-color: rgba(255,77,77,.30); }
.btn.small{ padding:7px 10px; border-radius:12px; font-size:13px; }
.field{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
}
input, select{
  background: transparent; border:none; outline:none;
}
input::placeholder{ color: rgba(154,167,178,.7); }

.grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
  margin-top:14px;
}
@media (max-width:980px){ .grid{ grid-template-columns: 1fr; } }

.panel{
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel .hd{
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.12);
}
.panel .hd h2{ margin:0; font-size:14px; font-weight:800; }
.panel .hd .hint{ color:var(--muted); font-size:12px; margin-top:4px; line-height:1.25; }
.panel .bd{ padding:14px; }

.statGrid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
.stat{ background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 12px; }
.stat .k{ font-size:12px; color:var(--muted); }
.stat .v{ margin-top:6px; font-size:24px; font-weight:900; }
.pillRow{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.pill{ font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color:var(--muted); display:flex; align-items:center; gap:7px; }
.dot{ width:10px;height:10px;border-radius:999px; border:1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.25); }
.dot.red{ background: rgba(255,77,77,.95); border-color: rgba(255,77,77,.55); }
.dot.yellow{ background: rgba(255,204,0,.95); border-color: rgba(255,204,0,.55); }
.dot.green{ background: rgba(49,209,124,.95); border-color: rgba(49,209,124,.55); }

.tabs{ display:flex; gap:8px; flex-wrap:wrap; padding:10px 14px 0; border-bottom:1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.10); }
.tab{ padding:8px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); cursor:pointer; font-size:13px; color:var(--muted); }
.tab.active{ background: rgba(122,162,255,.18); border-color: rgba(122,162,255,.35); color: var(--text); }

.toolbar{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.search{ display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:14px; background: rgba(0,0,0,.18); border:1px solid var(--border); min-width: 260px; }
.cards{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
@media (max-width:980px){ .cards{ grid-template-columns: 1fr; } .search{ min-width: 100%; } }

.card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  border-radius: 18px;
  padding: 12px;
  display:flex; flex-direction:column; gap:10px;
}
.card .row{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.card .title{ margin:0; font-weight:900; font-size:14px; line-height:1.25; }
.card .meta{ color:var(--muted); font-size:12px; display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.tag{ border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); padding:3px 8px; border-radius:999px; font-size:12px; color:var(--muted); }
.statusBadge{ display:flex; align-items:center; gap:7px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); padding:6px 10px; border-radius:999px; font-size:12px; color:var(--muted); white-space:nowrap; }
.card .notes{ margin:0; font-size:13px; line-height:1.35; white-space: pre-wrap; opacity:.92; }
.notice{ color:var(--muted); font-size:12px; line-height:1.35; margin-top:10px; }

.hidden{ display:none !important; }

.modalOverlay{
  position:fixed; inset:0; background: rgba(0,0,0,.56);
  display:none; align-items:center; justify-content:center; padding:14px; z-index:999;
}
.modalOverlay.show{ display:flex; }
.modal{
  width: min(760px, 100%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow:hidden;
  backdrop-filter: blur(10px);
}
.modal .mhd{ padding:14px 14px 10px; border-bottom:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; gap:10px; background: rgba(0,0,0,.14); }
.modal .mhd h3{ margin:0; font-size:14px; font-weight:900; }
.modal .mbd{ padding:14px; display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width:760px){ .modal .mbd{ grid-template-columns:1fr; } }
.box{ border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.16); border-radius:18px; padding:12px; }
.box h4{ margin:0 0 8px; font-size:13px; font-weight:900; }
.progressOuter{ height:12px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); overflow:hidden; margin-top:8px; }
.progressInner{ height:100%; width:0%; background: linear-gradient(90deg, rgba(122,162,255,.85), rgba(155,122,255,.85)); }
.bigTime{ font-size:42px; font-weight:950; letter-spacing:.5px; }
