/* file: public/assets/css/app.css */
:root{
  --bg:#0b0c10;
  --card:#12141b;
  --text:#e8eaf2;
  --muted:#a9afc3;
  --border:#23283a;
  --primary:#e8eaf2;
  --danger:#ff5c6c;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(120,140,255,.18), transparent 60%),
              radial-gradient(1200px 600px at 90% 0%, rgba(255,120,180,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans JP",sans-serif;
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:1100px; margin:0 auto; padding:18px; }

.topbar{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.6);
}
.topbar__inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand{ font-weight:700; letter-spacing:.3px; }
.nav{ display:flex; gap:10px; align-items:center; }

.footer{ border-top:1px solid var(--border); margin-top:24px; }
.footer__inner{ padding:16px 18px; color:var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

.card--sub{
  box-shadow:none;
  background: rgba(255,255,255,.02);
}

.h1{ font-size:28px; margin:0 0 12px 0; }
.h2{ font-size:18px; margin:0 0 10px 0; }
.h3{ font-size:14px; margin:0 0 8px 0; color:var(--muted); }

.muted{ color:var(--muted); }
.summary{ margin:10px 0 0 0; color:var(--muted); }

.grid{ display:grid; gap:12px; margin-top:12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px){ .grid, .grid--2{ grid-template-columns: 1fr; } }

.item__meta{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:6px; }
.item__actions{ display:flex; gap:10px; margin-top:12px; }

.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  text-decoration:none;
}
.btn:hover{ background: rgba(255,255,255,.06); text-decoration:none; }
.btn--primary{ background: rgba(232,234,242,.12); border-color: rgba(232,234,242,.22); }
.btn--danger{ background: rgba(255,92,108,.12); border-color: rgba(255,92,108,.35); }

.btn--ghost{ background: transparent; }

.filters{
  display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end;
}
.field{ display:flex; flex-direction:column; gap:6px; min-width: 220px; }
.field--check{ flex-direction:row; align-items:center; min-width:auto; gap:8px; padding-bottom:4px; }
.label{ font-size:12px; color:var(--muted); }

.input,.select,.textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(10,12,16,.55);
  color: var(--text);
  outline:none;
}
.textarea{ resize: vertical; }

.form{ margin-top:10px; }
.form__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 800px){ .form__grid{ grid-template-columns: 1fr; } }

.divider{ height:1px; background: var(--border); margin:14px 0; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; }

.pre{
  background: rgba(10,12,16,.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.prose{ margin:0; color: var(--text); }
.list{ margin:0; padding-left: 18px; color: var(--muted); }
.view__head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.view__actions{ display:flex; gap:10px; flex-wrap:wrap; }
