/* SNALS-Confsal – design system for the public site and the reserved area (draft). */

:root {
  --red: #BE272D;
  --red-600: #A4202A;
  --red-050: #FCEDEE;
  --red-100: #F8D7D9;
  --ink: #1D2128;
  --ink-2: #3B414B;
  --muted: #6B7280;
  --line: #E4E7EC;
  --line-2: #EEF0F3;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --blue: #1E4E9A;
  --blue-050: #EAF0FA;
  --teal: #0F5C66;
  --green: #1F8A5B;
  --green-050: #E7F5EE;
  --amber: #B7791F;
  --amber-050: #FDF4E3;
  --violet: #6B4FBB;
  --violet-050: #F0ECFA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -24px rgba(16, 24, 40, .35);
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons, pills, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: .15s ease; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -8px rgba(190, 39, 45, .7); }
.btn-primary:hover { background: var(--red-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #CBD2DB; background: #FBFBFC; }
.btn-danger { background: #fff; color: var(--red-600); border-color: var(--red-100); }
.btn-danger:hover { background: var(--red-050); border-color: var(--red); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.no-dot::before { display: none; }
.pill.red { background: var(--red-050); color: var(--red-600); }
.pill.blue { background: var(--blue-050); color: var(--blue); }
.pill.green { background: var(--green-050); color: var(--green); }
.pill.amber { background: var(--amber-050); color: var(--amber); }
.pill.violet { background: var(--violet-050); color: var(--violet); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
input, select, textarea { font: 500 15px var(--font); color: var(--ink); background: #fff; border: 1px solid #D5DAE1; border-radius: 10px; padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(190, 39, 45, .12); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; background: var(--blue-050); color: #1B3E78; border: 1px solid #D4E0F4; }
.notice.warn { background: var(--amber-050); color: #7A4F0D; border-color: #F1DDB2; }
.notice.danger { background: var(--red-050); color: #8A1C22; border-color: var(--red-100); }
.notice.ok { background: var(--green-050); color: #145C3D; border-color: #C9E8D8; }
.notice strong { display: block; margin-bottom: 2px; }

.table-wrap { overflow-x: auto; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FBFBFD; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--red), #7E1820); flex: none; }
.avatar.blue { background: linear-gradient(135deg, #3569C2, var(--blue)); }
.avatar.teal { background: linear-gradient(135deg, #2A8C96, var(--teal)); }

/* ---------- dropzone ---------- */
.drop { border: 1.5px dashed #C9D0DA; border-radius: 12px; padding: 18px; display: flex; gap: 14px; align-items: center; background: #FBFCFD; transition: .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-050); }
.drop .ico { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--red); }
.drop .t { font-weight: 600; font-size: 14px; }
.drop .s { font-size: 12.5px; color: var(--muted); }
.drop.done { border-style: solid; border-color: #BFE3D0; background: var(--green-050); }
.drop.done .ico { color: var(--green); }

/* ---------- progress / steps ---------- */
.steps { display: flex; gap: 8px; counter-reset: s; margin-bottom: 24px; flex-wrap: wrap; }
.steps .s { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.steps .s::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: 13px; flex: none; }
.steps .s.active { border-color: var(--red); color: var(--ink); box-shadow: 0 0 0 4px rgba(190,39,45,.08); }
.steps .s.active::before { background: var(--red); color: #fff; }
.steps .s.done { color: var(--ink-2); }
.steps .s.done::before { content: '✓'; background: var(--green); color: #fff; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line-2); color: var(--muted); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline .done .dot { background: var(--green); color: #fff; box-shadow: none; }
.timeline .now .dot { background: var(--red); color: #fff; box-shadow: 0 0 0 5px rgba(190,39,45,.15); }
.timeline .t { font-weight: 700; font-size: 14.5px; }
.timeline .d { font-size: 13px; color: var(--muted); }

.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #E0565C); }

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
}
