/* ============================================================
 * zepro-theme.css — ZEPRO 공통 디자인 토큰 & 컴포넌트
 * 새 디자인 컨셉(zepro_final_dashboard / preview)에서 추출.
 * 모든 페이지가 <link rel="stylesheet" href="zepro-theme.css"> 로 사용.
 * ============================================================ */
:root {
  --blue: #1459ef;
  --blue-2: #0838bd;
  --navy: #081d59;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --line: #e4eaf4;
  --green: #10b86b;
  --green-soft: #e9fbf2;
  --red: #f04452;
  --red-soft: #fff0f2;
  --orange: #f79009;
  --orange-soft: #fff6e8;
  --blue-soft: #edf4ff;
  --purple: #7259ed;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 10px 30px rgba(22, 48, 96, .08);
  --shadow-sm: 0 4px 14px rgba(22, 48, 96, .06);
  --content: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, rgba(20, 89, 239, .06), transparent 28%),
    var(--bg);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.9; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 13px;
  font-weight: 800; font-size: 15px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(20,89,239,.28); }
.btn-primary:hover { background: var(--blue-2); }
.btn-secondary { background: #eef2f9; color: #344054; }
.btn-secondary:hover { background: #e3e9f4; }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--line); }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.card-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--navy); }
.card-body { padding: 16px 20px 20px; }
.text-link { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--blue); }

/* ── Status badges ── */
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.warn { background: var(--orange-soft); color: var(--orange); }
.status.error { background: var(--red-soft); color: var(--red); }

/* ── Topbar (공통 헤더) ── */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 72px;
  border-bottom: 1px solid rgba(220,228,241,.9);
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.topbar-inner { width: min(var(--content), calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 34px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-weight: 900; font-size: 23px; letter-spacing: -.7px; color: #071848; }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-radius: 12px; background: #101828; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
