/* ============================================================
   ZEPRO — 공유 디자인 시스템 (app.css)
   index.html / dashboard.html 과 동일한 톤으로 신규 페이지에서 사용
   ============================================================ */
:root {
  --blue: #1459ef;
  --blue-2: #0838bd;
  --blue-strong: #0b43d6;
  --navy: #081d59;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --line: #e4eaf4;
  --line-strong: #d3def0;
  --green: #10b86b;
  --green-soft: #e9fbf2;
  --red: #f04452;
  --red-soft: #fff0f2;
  --orange: #f79009;
  --orange-soft: #fff6e8;
  --blue-soft: #edf4ff;
  --purple: #7259ed;
  --purple-soft: #f1efff;
  --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: 1240px;
}

* { 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%),
    radial-gradient(circle at 6% 30%, rgba(112, 92, 246, .04), transparent 24%),
    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;
  min-height: 100vh;
}
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; }

.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;
}
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.9; }

/* ===== Header / 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: 30px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  font-weight: 900; font-size: 23px; letter-spacing: -.7px; color: #071848;
}
.logo-mark { width: 31px; height: 27px; }
.desktop-nav { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.nav-link {
  position: relative; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; color: #344054; font-weight: 700; font-size: 14px;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active { color: var(--blue); }
.nav-link.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--blue);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 12px; color: #344054; background: transparent;
}
.icon-btn:hover { background: #f2f6fd; color: var(--blue); }
.notification-dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px;
  display: grid; place-items: center; padding: 0 4px; border: 2px solid white;
  border-radius: 999px; background: var(--red); color: white; font-size: 10px; font-weight: 900;
}
.profile {
  display: flex; align-items: center; gap: 9px; border: 0;
  padding: 4px 6px 4px 4px; border-radius: 14px; background: transparent; color: #1d2939;
}
.profile:hover { background: #f4f7fc; }
.avatar {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: white; background: linear-gradient(145deg, #1d66ff, #1739ba);
  font-weight: 900; font-size: 13px; box-shadow: 0 6px 16px rgba(20, 89, 239, .25);
}
.profile-name { font-size: 14px; font-weight: 800; }
.pro-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 3px;
  border-radius: 7px; color: white; background: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .2px;
}
.menu-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px;
  font-weight: 850; font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(20,89,239,.20); }
.btn-primary:hover { background: #0b4cdb; box-shadow: 0 12px 24px rgba(20,89,239,.26); }
.btn-outline { color: var(--blue); border-color: #d3def0; background: white; }
.btn-outline:hover { border-color: #adc5f6; background: #f8fbff; }
.btn-primary-light { color: #0d46d6; background: white; box-shadow: 0 8px 22px rgba(0,0,0,.13); }
.btn-ghost-light { color: white; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.13); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

/* ===== Page shell ===== */
.page { width: min(var(--content), calc(100% - 40px)); margin: 26px auto 40px; }
.breadcrumb {
  display: flex; align-items: center; gap: 7px; margin-bottom: 14px;
  color: var(--muted); font-size: 12px; font-weight: 700;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .icon { width: 13px; height: 13px; color: var(--muted-2); }
.page-head { margin: 0 2px 20px; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px;
  color: var(--blue); font-size: 13px; font-weight: 900;
}
.page-eyebrow .icon { width: 16px; height: 16px; }
.page-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -1px; color: var(--navy); }
.page-desc { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 720px; }

/* ===== Card ===== */
.card {
  min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.card-head {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 0 22px; border-bottom: 1px solid #edf1f7;
}
.card-title { margin: 0; font-size: 15px; letter-spacing: -.25px; }
.card-body { padding: 22px; }
.text-link {
  display: inline-flex; align-items: center; gap: 3px; border: 0; padding: 5px;
  color: var(--blue); background: transparent; font-size: 12px; font-weight: 800;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 14px; height: 14px; }
.full-outline-btn {
  width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; border: 1px solid #d9e2f1; border-radius: 11px; color: var(--blue);
  background: white; font-size: 12px; font-weight: 850;
}
.full-outline-btn:hover { border-color: #adc5f6; background: #f8fbff; }

/* ===== Status badges ===== */
.status {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 43px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 10px; font-weight: 900;
}
.status .icon { width: 12px; height: 12px; }
.status.ok { color: var(--green); background: var(--green-soft); }
.status.error { color: var(--red); background: var(--red-soft); }
.status.warn { color: var(--orange); background: var(--orange-soft); }
.status.pending { color: var(--muted); background: #eef1f6; }

.tone-blue   { --tone: var(--blue);   --tone-soft: var(--blue-soft); }
.tone-green  { --tone: var(--green);  --tone-soft: var(--green-soft); }
.tone-red    { --tone: var(--red);    --tone-soft: var(--red-soft); }
.tone-orange { --tone: var(--orange); --tone-soft: var(--orange-soft); }
.tone-purple { --tone: var(--purple); --tone-soft: var(--purple-soft); }

/* ===== Footer ===== */
.site-footer {
  margin-top: 12px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fafcff, #f1f5fc);
}
.footer-inner {
  width: min(var(--content), calc(100% - 40px)); margin: 0 auto;
  padding: 40px 0 34px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { font-size: 21px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; color: var(--navy); }
.footer-col a { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px;
}
.footer-bottom-inner {
  width: min(var(--content), calc(100% - 40px)); margin: 0 auto;
  padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ===== Trust strip (mini) ===== */
.trust-strip {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 20px; padding: 14px 20px; border: 1px solid #dfe8f8;
  border-radius: 14px; color: #475467;
  background: linear-gradient(90deg, #f2f6ff, #fafcff); font-size: 12px;
}
.trust-message { display: flex; align-items: center; gap: 9px; }
.trust-message .icon { color: var(--blue); }

/* ===== Generic helpers ===== */
.grid { display: grid; gap: 16px; }
.muted { color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: white;
  color: #475467; font-size: 12px; font-weight: 750;
}

/* ===== Mobile drawer ===== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(7, 24, 72, .42); backdrop-filter: blur(3px);
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(320px, 84vw);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  background: white; box-shadow: -16px 0 50px rgba(7,24,72,.18); padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-radius: 12px; color: #1d2939; font-weight: 800; font-size: 15px;
}
.drawer a:hover, .drawer a.active { background: var(--blue-soft); color: var(--blue); }
.drawer a .icon { width: 16px; height: 16px; color: var(--muted-2); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .profile-name { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 0; border-radius: 12px; background: transparent; color: #344054;
  }
  .menu-toggle:hover { background: #f2f6fd; }
}
