/* ============================================================
   impacsys-v6-ext.css — v6 확장 레이어
   - impacsys-v6.css 토큰 변수만 참조할 것 (직접 색상값 금지)
   - v6에 없는 저장소 전용 컴포넌트만 작성
   ============================================================ */

/* ── 다크모드 토큰 오버라이드 (v6.css body.dark 와 동일 메커니즘) ── */
body.dark {
  --text:            #f2f4f7;
  --text-soft:       #d1d8e2;
  --secondary:       #b8c0cc;
  --tertiary:        #7f8da3;
  --separator:       rgba(255, 255, 255, 0.10);
  --separator-soft:  rgba(255, 255, 255, 0.06);
  --canvas:          #0b111c;
  --surface:         rgba(19, 26, 39, 0.90);
  --solid:           #121a2a;
  --accent:          #58a6ff;
  --accent-pressed:  #8bc2ff;
  --accent-soft:     rgba(88, 166, 255, 0.16);
  --green:           #34d399;
  --green-soft:      rgba(52, 211, 153, 0.15);
  --orange:          #fbbf24;
  --orange-soft:     rgba(251, 191, 36, 0.15);
  --red:             #f87171;
  --red-soft:        rgba(248, 113, 113, 0.15);
  --shadow-hairline: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-soft:     0 10px 28px rgba(0, 0, 0, 0.32);
  --shadow-lift:     0 22px 48px rgba(0, 0, 0, 0.40);
}


/* ── 프로그레스 바 (대시보드 시스템 지표용) ── */
.im-progress {
  height: 6px;
  background: var(--separator);
  border-radius: 999px;
  overflow: hidden;
}
.im-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 300ms ease;
}
.im-progress-bar.ok     { background: var(--green); }
.im-progress-bar.warn   { background: var(--orange); }
.im-progress-bar.danger { background: var(--red); }

/* ── 페이지 타이틀 ── */
#pageTitle {
  font-size: 16px;
  font-weight: 760;
  margin: 0;
  color: var(--text);
}

/* ── 알림 모달 (imAlert) ── */
#imAlertModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#imAlertModal.open { display: flex; }
.im-alert-box {
  background: var(--solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}
.im-alert-head { padding: 20px 20px 12px; display: flex; gap: 12px; align-items: flex-start; }
.im-alert-icon { width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.im-alert-foot { padding: 0 20px 20px; display: flex; gap: 8px; justify-content: flex-end; }

/* ── 메트릭 아이콘 ── */
.im-metric-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.im-metric-icon.blue   { background: var(--accent-soft); color: var(--accent); }
.im-metric-icon.green  { background: var(--green-soft);  color: var(--green); }
.im-metric-icon.orange { background: var(--orange-soft); color: var(--orange); }
.im-metric-icon.red    { background: var(--red-soft);    color: var(--red); }

/* ── 로그인 페이지 ── */
.im-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
}
.im-login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
