/* ===================== 공통 스타일 ===================== */
:root {
  --brand-primary: #2563eb;
  --brand-dark: #1e3a8a;
  --brand-light: #eff6ff;
}

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  background-color: #f4f6fb;
}

/* 스크롤바 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 사이드바 활성 메뉴 */
.nav-link.active {
  background-color: var(--brand-light);
  color: var(--brand-primary);
  font-weight: 600;
  border-right: 3px solid var(--brand-primary);
}

/* 상태 배지 공통 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

/* 모달 */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: #fff; border-radius: 16px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(12px) scale(.98); transition: transform .18s ease;
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }

/* 테이블 hover */
.data-table tbody tr:hover { background-color: #f8fafc; }

/* 카드 hover */
.stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37,99,235,.12); }

/* 로그인 배경 */
.auth-bg {
  background: radial-gradient(circle at 20% 20%, #3b82f6 0%, transparent 45%),
              radial-gradient(circle at 80% 80%, #1e3a8a 0%, transparent 45%),
              linear-gradient(135deg, #0f172a, #1e3a8a);
}

/* 반응형 사이드바 */
@media (max-width: 1024px) {
  .app-sidebar { position: fixed; left: -280px; top: 0; height: 100%; z-index: 50; transition: left .2s ease; }
  .app-sidebar.open { left: 0; }
}

/* 유틸 */
.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.line-clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }

/* ===================== COSRX 워드마크 (이미지 없는 텍스트 로고) ===================== */
.cosrx-wordmark {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-divider { width: 1px; align-self: stretch; background: currentColor; opacity: .2; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: .6; }
