/* === 글로벌 테마 (다크네이비 + 빨강 + 코랄 + Pretendard) === */
/* 각 페이지의 :root 색상 변수보다 우선 적용. 2026-05-02 적용. */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root,
.dark {
  --bg: #1B1B2F !important;
  --bg-elev: #232342 !important;
  --card: #2A2A48 !important;
  --card-hover: #33335a !important;
  --cream: #232342 !important;
  --cream-dark: #1B1B2F !important;
  --text: #F5F5FA !important;
  --text-sub: #B5B5CC !important;
  --text-dim: #7A7A99 !important;
  --border: rgba(255,255,255,0.08) !important;
  --accent: #E04345 !important;
  --accent-light: #FF6668 !important;
  --accent-hover: #c93538 !important;
  --accent-bg: rgba(224,67,69,0.12) !important;
  --coral: #FFA39C !important;
  --coral-bg: rgba(255,163,156,0.14) !important;
  --gold: #F5C76A !important;
  --teal: #5EE2C9 !important;
}

html, body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: #1B1B2F !important;
  color: #F5F5FA !important;
  -webkit-font-smoothing: antialiased;
}

/* 기존 페이지의 인라인 cream/light 배경 강제 오버라이드 */
body[style*="background"] { background: #1B1B2F !important; }

/* 카드/패널 공통 */
.card, .panel, .stat-card, .briefing-card, .content-card, .finance-card,
[class*="card"], [class*="panel"] {
  background: #2A2A48 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #F5F5FA !important;
}

/* 강조 색상 매핑 */
[class*="accent"], .pin, .pin-active, .priority-high, .badge-priority {
  color: #E04345 !important;
}
.btn-primary, button.primary, [class*="btn-primary"] {
  background: #E04345 !important;
  color: white !important;
  border-color: #E04345 !important;
}
.btn-primary:hover { background: #c93538 !important; }

/* 보조 (코랄) */
.success, .done, .completed, [class*="success"] {
  color: #FFA39C !important;
}

/* 사업 태그 색상 통일 */
.tag, [class*="tag"], .business-tag, .category-tag {
  font-family: 'Pretendard Variable', Pretendard, sans-serif !important;
}

/* 입력 / 버튼 / 링크 */
input, textarea, select, button {
  font-family: 'Pretendard Variable', Pretendard, sans-serif !important;
}
input, textarea, select {
  background: #232342 !important;
  color: #F5F5FA !important;
  border-color: rgba(255,255,255,0.12) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #E04345 !important;
  outline-color: #E04345 !important;
}

/* 링크 / 네비 */
.nav-link.active, .top-nav a.active, [class*="active"] {
  background: #E04345 !important;
  color: white !important;
}
a { color: inherit; }
a:hover { color: #FFA39C !important; }

/* 스크롤바 (웹킷) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #1B1B2F; }
::-webkit-scrollbar-thumb { background: #33335a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #E04345; }

/* 모달 / 드롭다운 */
.modal, .dropdown, [class*="modal"], [class*="dropdown"] {
  background: #2A2A48 !important;
  color: #F5F5FA !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* 테이블 */
table, th, td {
  background: transparent !important;
  color: inherit !important;
  border-color: rgba(255,255,255,0.08) !important;
}
thead, th { color: #B5B5CC !important; }
