/* assets/app.css
   Style: Glassmorphism / iPhone-like clean UI
   - Responsive
   - Dark-friendly
*/
:root{
  --bg1:#0b1020;
  --bg2:#0f1b3a;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --danger: #ff5a7a;
  --ok: #46e6a5;
  --accent: #7c5cff;
  --accent2:#2dd4bf;
  --shadow: 0 18px 70px rgba(0,0,0,.45);
  --radius: 18px;
}

*{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;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 700px at 80% 30%, rgba(45,212,191,.28), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.9}

.container{
  width:min(980px, 92vw);
  margin:0 auto;
  padding:22px 0 40px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,14,30,.35);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar .inner{
  width:min(1100px, 94vw);
  margin:0 auto;
  padding:14px 0;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:700;
  letter-spacing:.2px;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
}
.nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.nav a{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color:var(--text);
  font-size:14px;
}
.nav a:hover{
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card.pad{padding:18px}

.h1{font-size:28px;margin:0 0 8px}
.sub{color:var(--muted); margin:0 0 16px; line-height:1.55}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 760px){
  .grid{grid-template-columns:1fr}
  .nav{justify-content:flex-start}
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.label{
  font-size:13px;
  color:var(--muted);
}
.input, .select, .textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.input:focus,.select:focus,.textarea:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
}
.textarea{min-height:120px; resize:vertical}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(45,212,191,.75));
  color: #081022;
  font-weight: 700;
  cursor:pointer;
  transition: transform .08s ease, filter .2s ease, opacity .2s ease;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform: translateY(1px)}
.btn.ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.btn.danger{
  background: linear-gradient(135deg, rgba(255,90,122,.9), rgba(255,140,90,.8));
  color:#2a070e;
}

.msg{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  margin: 10px 0 14px;
  white-space:pre-wrap;
}
.msg.ok{border-color: rgba(70,230,165,.35); background: rgba(70,230,165,.10)}
.msg.err{border-color: rgba(255,90,122,.35); background: rgba(255,90,122,.10)}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}
.table th, .table td{
  padding:12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size:14px;
}
.table th{color:rgba(255,255,255,.85); background: rgba(255,255,255,.05)}
.table tr:last-child td{border-bottom:none}

.small{font-size:12px;color:var(--muted)}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  padding:2px 8px;
  border-radius:10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
