/* assets/style.css */
:root { --bg:#f7f7fb; --text:#222; --muted:#555; --brand:#2563eb; --card:#fff; --line:#eaeaea; }
*{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto}
a{color:var(--brand);text-decoration:none}
.site-header{padding:32px 16px;background:#fff;border-bottom:1px solid var(--line);text-align:center}
.site-header h1{margin:0 0 6px;font-size:28px}
.subtitle{margin:0;color:var(--muted)}
.container{max-width:980px;margin:20px auto;padding:0 16px}
.notice{padding:10px 12px;border:1px dashed #bbb;background:#fff;display:inline-block;border-radius:8px;margin-bottom:14px}
.toast{background:#e6ffe6;border:1px solid #b3e6b3;padding:10px 12px;border-radius:8px;margin-bottom:12px}
.hero{background:var(--card);border:1px solid var(--line);padding:16px;border-radius:12px;margin-bottom:16px}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;margin:10px 0 0 18px}
.lead h3{margin:18px 0 10px}
.card{background:var(--card);border:1px solid var(--line);padding:16px;border-radius:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
label{display:block;margin-bottom:10px}
label span{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
input,textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}
button{background:var(--brand);color:#fff;border:none;padding:12px 16px;border-radius:10px;font-weight:600;cursor:pointer}
.site-footer{padding:24px 16px;text-align:center;color:var(--muted)}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef;border:1px solid #ccd;color:#224}
.search{display:flex;gap:8px;margin-bottom:12px}
.search input{flex:1}

/* --- Modern responsive improvements --- */
:root {
  --bg:#0b1020;
  --card:#0f1530;
  --line:#1d2444;
  --text:#eaf1ff;
  --muted:#aab4d4;
  --brand:#6ea8fe;
  --brand-2:#b4c5ff;
  --accent:#22c55e;
}

/* Nice gradient header */
.site-header{
  background: radial-gradient(1000px 400px at 50% -10%, #1b2350 20%, #0d1230 60%, #0b1020 100%);
  border-bottom: 1px solid var(--line);
}
.site-header h1{letter-spacing:.5px}
.subtitle{opacity:.9}

/* Card polish */
.card{backdrop-filter: saturate(110%) blur(2px)}
.card, .hero{box-shadow: 0 10px 20px rgba(0,0,0,.25)}

/* Inputs */
input,textarea,select{
  background:#0b1023;
  color:var(--text);
  border:1px solid #1b2350;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(110,168,254,.15);
}

/* Buttons */
button, .btn{
  background: linear-gradient(180deg, var(--brand), #4a80d9);
  border:1px solid #4476c7;
  border-bottom-color:#3a67af;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
button:hover, .btn:hover{filter:brightness(1.05)}
button:active, .btn:active{transform: translateY(1px)}

/* Responsive table wrapper */
.table-wrap{width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--card)}
.table-wrap table{min-width:720px;border:none}
th,td{border-bottom:1px solid var(--line)}
th{color:#cdd6ff; font-weight:600}

/* Badges + chips */
.badge{background:#18214a;border-color:#27306a;color:#d9e2ff}

/* Container + spacing tuning */
.container{padding-bottom:40px}
.hero h2{font-size:18px;margin:0 0 10px}
.features{margin-left:0; padding-left:18px}
.notice{background:#0b1023; border-color:#20306a}

/* Footer */
.site-footer{border-top:1px solid var(--line); background:#0b1020}

/* Sticky header for admin pages */
body.admin .site-header{position:sticky; top:0; z-index:50}

/* Small devices */
@media (max-width: 640px){
  .site-header h1{font-size:22px}
  .grid{grid-template-columns: 1fr}
  .features{grid-template-columns: 1fr}
  .container{padding:0 12px}
  button{width:100%}
}

/* Medium+ */
@media (min-width: 1024px){
  .container{max-width:1100px}
}
