/* Dark, simple, slightly modern */
:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f1730;
  --text:#e6e9f5;
  --muted:#a7b0d6;
  --border:#243055;
  --accent:#7c5cff;
  --accent2:#23c483;
  --danger:#ff5c7a;
  --warn:#ffb020;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 500px at 80% 0%, rgba(124,92,255,.25), transparent 60%),
              radial-gradient(800px 400px at 10% 0%, rgba(35,196,131,.15), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:24px auto;padding:0 14px}
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,16,32,.65);
  border-bottom:1px solid rgba(36,48,85,.65);
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
}
.brand{font-weight:700; letter-spacing:.2px}
.top-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.link{padding:8px 10px;border-radius:12px;color:var(--muted)}
.link:hover{background:rgba(255,255,255,.05);color:var(--text)}
.inline{display:inline}

.grid{
  display:grid; gap:14px;
}
.grid-2{grid-template-columns: 1fr 1fr}
.grid-3{grid-template-columns: 2fr 1fr 1fr}
@media (max-width: 900px){
  .grid-2,.grid-3{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 60%), var(--card);
  border:1px solid rgba(36,48,85,.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.card h2,.card h3{margin:0 0 10px 0}
.muted{color:var(--muted)}
.hr{height:1px;background:rgba(36,48,85,.7);margin:12px 0}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.spacer{flex:1}

.btn{
  appearance:none; border:1px solid rgba(36,48,85,.9);
  border-radius:14px;
  padding:10px 14px;
  font-weight:600;
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background:rgba(255,255,255,.07)}
.btn:disabled{opacity:.45; cursor:not-allowed}
.btn-primary{background:rgba(124,92,255,.18); border-color:rgba(124,92,255,.55)}
.btn-primary:hover{background:rgba(124,92,255,.25)}
.btn-success{background:rgba(35,196,131,.14); border-color:rgba(35,196,131,.55)}
.btn-danger{background:rgba(255,92,122,.12); border-color:rgba(255,92,122,.55)}
.btn-ghost{background:transparent}

.input, select, textarea{
  width:100%;
  background:rgba(255,255,255,.03);
  color:var(--text);
  border:1px solid rgba(36,48,85,.9);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
}
label{display:block; margin:8px 0 6px; color:var(--muted); font-size:13px}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(36,48,85,.9);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
}
.badge.ok{border-color: rgba(35,196,131,.55); color:#bff3dc}
.badge.warn{border-color: rgba(255,176,32,.6); color:#ffe4b3}
.badge.danger{border-color: rgba(255,92,122,.6); color:#ffc7d1}

.timer{
  font-size:46px;
  font-weight:800;
  letter-spacing:1px;
}
.timer.running{color:#dcd6ff}
.timer.paused{color:#d6e8ff}
.timer.stopped{color:var(--muted)}
.pulse{
  display:inline-block;
  width:10px;height:10px;border-radius:50%;
  background:var(--accent2);
  box-shadow:0 0 0 0 rgba(35,196,131,.4);
  animation:pulse 1.6s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(35,196,131,.45)}
  70%{box-shadow:0 0 0 14px rgba(35,196,131,0)}
  100%{box-shadow:0 0 0 0 rgba(35,196,131,0)}
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.table th{
  text-align:right;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  padding:0 10px;
}
.table td{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(36,48,85,.75);
  padding:10px;
}
.table tr td:first-child{border-radius:14px 0 0 14px}
.table tr td:last-child{border-radius:0 14px 14px 0}
@media (max-width: 700px){
  .table thead{display:none}
  .table, .table tbody, .table tr, .table td{display:block; width:100%}
  .table tr{margin-bottom:12px}
  .table td{border-radius:14px !important; margin:6px 0}
}

.footer{
  padding:14px;
  text-align:center;
  color:rgba(167,176,214,.7);
}
.notice{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,176,32,.6);
  background: rgba(255,176,32,.08);
}
