/* ============================================
   평생학습도시 기초자료 조사 시스템 - 메인 스타일
   ============================================ */

/* --- 기본 초기화 & 공통 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:       #1a3a6b;   /* 딥 남색 - 메인 */
  --color-primary-dark:  #122d55;   /* 더 진한 남색 */
  --color-primary-mid:   #2c5aa0;   /* 중간 파란색 */
  --color-accent:        #4fa3e0;   /* 포인트 하늘색 */
  --color-accent-light:  #d6eaf8;   /* 연한 하늘색 배경 */
  --color-bg:            #f4f6fb;   /* 전체 배경 */
  --color-bg-section:    #eef2f9;   /* 섹션 배경 */
  --color-white:         #ffffff;
  --color-text-dark:     #1a2a3a;   /* 주 텍스트 */
  --color-text-body:     #3a4a5c;   /* 본문 텍스트 */
  --color-text-muted:    #7a8a9a;   /* 흐린 텍스트 */
  --color-border:        #d0d8e4;   /* 기본 경계선 */
  --color-border-light:  #e8eef6;   /* 연한 경계선 */
  --color-red:           #c0392b;   /* 오류/강조 */
  --color-green:         #27ae60;
  --font-base: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', sans-serif;
  --shadow-sm: 0 1px 4px rgba(26,58,107,0.07);
  --shadow-md: 0 2px 12px rgba(26,58,107,0.12);
  --shadow-lg: 0 4px 24px rgba(26,58,107,0.15);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --transition: 0.18s ease;
  --inner-width: 1200px;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.6;
  min-width: 1200px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

input, button, select {
  font-family: var(--font-base);
  font-size: inherit;
}

.inner {
  width: var(--inner-width);
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================
   TOP UTILITY BAR
   ============================================ */
.top-utility-bar {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  height: 34px;
  line-height: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-utility-bar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.util-left {
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

.util-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.util-right a {
  color: rgba(255,255,255,0.7);
  font-size: 11.5px;
  padding: 0 10px;
  transition: color var(--transition);
}

.util-right a:hover {
  color: #fff;
}

.util-right .divider {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
}


/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 6px rgba(26,58,107,0.06);
}

.main-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* 로고 */
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  padding-left: 14px;
  margin-left: 2px;
}

.logo-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 헤더 우측 빠른 링크 */
.header-right {
  display: flex;
  align-items: center;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--color-text-body);
  background: var(--color-white);
  transition: all var(--transition);
}

.quick-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
  background: var(--color-accent-light);
}

.quick-btn.highlight {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.quick-btn.highlight:hover {
  background: var(--color-primary-mid);
  color: #fff;
}

.quick-btn i {
  font-size: 12px;
}


/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
  background: var(--color-primary);
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(26,58,107,0.18);
}

.main-nav .inner {
  padding: 0 20px;
}

.nav-list {
  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  height: 52px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-item:hover .nav-link,
.nav-item.active .nav-link {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after {
  transform: scaleX(1);
}

.nav-sub-label {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
}

.nav-arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform var(--transition);
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* 드롭다운 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 999;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-inner {
  padding: 8px 0;
}

.dropdown-inner ul li a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--color-text-body);
  transition: all var(--transition);
  position: relative;
}

.dropdown-inner ul li a:hover,
.dropdown-inner ul li a.active {
  color: var(--color-primary);
  background: var(--color-accent-light);
  font-weight: 500;
}

.dropdown-inner ul li a.active {
  text-decoration: underline;
}

.dropdown-inner ul li + li a {
  border-top: 1px solid var(--color-border-light);
}


/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  padding: 28px 0 36px;
}

.main-content .inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== 상단 컨텐츠 (로그인 + 배너) ===== */
.content-top {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* ============================================
   LOGIN SECTION  (서비스형 개선)
   ============================================ */
.login-section {
  width: 320px;
  flex-shrink: 0;
}

/* 카드 박스 */
.login-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(26,58,107,0.10);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── 헤더 ── */
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(to right, #f8faff, #ffffff);
}

.login-header-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.login-header-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.login-header-icon {
  font-size: 15px;
  color: var(--color-primary-mid);
  background: var(--color-accent-light);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 3px 10px;
  transition: all var(--transition);
  white-space: nowrap;
}

.login-help-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ── 안내 문구 ── */
.login-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  font-size: 12px;
  color: var(--color-text-muted);
  background: #f8faff;
  border-bottom: 1px solid var(--color-border-light);
}

.login-notice i {
  font-size: 12.5px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── 폼 영역 ── */
.login-form {
  padding: 20px 22px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 필드 그룹 */
.lf-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* 라벨 행 */
.lf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 18px;
}

.lf-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

.lf-required {
  color: #c0392b;
  margin-left: 2px;
  font-size: 13px;
  line-height: 1;
}

/* 오류 메시지 */
.lf-error-msg {
  font-size: 11.5px;
  color: #c0392b;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 16px;
  font-weight: 500;
}

/* 인풋 행 (입력창 + 보조버튼) */
.lf-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* 인풋 래퍼 (아이콘 + 입력창 + X버튼) */
.lf-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.lf-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #a0aec0;
  pointer-events: none;
  z-index: 1;
}

.lf-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 34px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text-dark);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  font-family: var(--font-base);
}

.lf-input:hover {
  border-color: #a0b4cc;
}

.lf-input:focus {
  border-color: var(--color-primary-mid);
  box-shadow: 0 0 0 3px rgba(44,90,160,0.10);
  background: #fdfdff;
}

.lf-input::placeholder {
  color: #b8c4d0;
  font-size: 13px;
}

/* 오류 상태 */
.lf-field-group.is-error .lf-input {
  border-color: #c0392b;
  background: #fff8f8;
}

.lf-field-group.is-error .lf-input:focus {
  box-shadow: 0 0 0 3px rgba(192,57,43,0.09);
}

.lf-field-group.is-error .lf-input-icon {
  color: #c0392b;
}

/* 성공 상태 */
.lf-field-group.is-valid .lf-input {
  border-color: var(--color-green);
}

.lf-field-group.is-valid .lf-input-icon {
  color: var(--color-green);
}

/* X 지우기 버튼 */
.lf-input-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #b8c4d0;
  padding: 2px;
  line-height: 1;
  transition: color var(--transition);
}

.lf-input-clear:hover { color: #7a8a9a; }

/* 비밀번호 눈 버튼 */
.lf-pw-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #a0aec0;
  padding: 3px;
  line-height: 1;
  transition: color var(--transition);
}

.lf-pw-toggle:hover { color: var(--color-primary-mid); }

/* 보조 버튼 (코드찾기 / 등록재설정) */
.btn-sub {
  height: 40px;
  padding: 0 12px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-body);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  font-family: var(--font-base);
  flex-shrink: 0;
}

.btn-sub i {
  font-size: 11px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.btn-sub:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.btn-sub:hover i { color: var(--color-primary-mid); }

.btn-sub:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── 옵션 행 (체크박스 + Caps Lock 경고) ── */
.lf-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

/* 커스텀 체크박스 */
.lf-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.lf-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lf-checkmark {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.lf-checkmark i {
  font-size: 9px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}

.lf-checkbox-label input:checked ~ .lf-checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.lf-checkbox-label input:checked ~ .lf-checkmark i {
  opacity: 1;
}

.lf-checkbox-label:hover .lf-checkmark {
  border-color: var(--color-primary-mid);
}

.lf-checkbox-text {
  font-size: 12.5px;
  color: var(--color-text-body);
}

/* Caps Lock 경고 */
.lf-capslock-msg {
  font-size: 11.5px;
  color: #d35400;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeInRight 0.2s ease;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── 로그인 버튼 (주 버튼) ── */
.btn-login {
  width: 100%;
  height: 46px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  font-family: var(--font-base);
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

.btn-login-text,
.btn-login-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login:hover:not(:disabled) {
  background: var(--color-primary-mid);
  box-shadow: 0 4px 14px rgba(26,58,107,0.30);
  transform: translateY(-1px);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-login:disabled {
  background: #8ca4c2;
  cursor: not-allowed;
  transform: none;
}

/* ── 하단 링크 ── */
.login-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--color-border-light);
  background: #f8faff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lf-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 4px;
  font-size: 12.5px;
  color: var(--color-text-body);
  transition: all var(--transition);
  border-radius: var(--radius-sm);
}

.lf-link:hover {
  color: var(--color-primary);
  background: var(--color-accent-light);
  padding-left: 10px;
}

.lf-link-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-primary-mid);
  transition: all var(--transition);
}

.lf-link:hover .lf-link-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.lf-link-text {
  flex: 1;
  line-height: 1.3;
}

.lf-divider {
  height: 1px;
  background: var(--color-border-light);
  margin: 2px 4px;
}


/* ============================================
   BANNER SECTION
   ============================================ */
.banner-section {
  flex: 1;
  min-width: 0;
}

.banner-slider {
  position: relative;
  background: linear-gradient(135deg, #1a3a6b 0%, #2c5aa0 55%, #3a76c4 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 300px;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 30px 40px;
  gap: 20px;
}

.banner-text {
  flex: 1;
  color: #fff;
}

.banner-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.banner-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  font-size: 13px;
}

.info-label {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  margin-right: 8px;
  min-width: 56px;
  text-align: center;
  letter-spacing: 0.01em;
}

.info-value {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.5;
}

.banner-deadline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  margin-top: 6px;
}

.banner-deadline i {
  color: var(--color-accent);
  font-size: 13px;
}

.banner-deadline strong {
  color: #fff;
  font-weight: 600;
}

/* 배너 통계 (슬라이드 3) */
.banner-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* 배너 비주얼 요소 */
.banner-visual {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  opacity: 0.6;
}

.visual-circle {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
}

.visual-circle i {
  color: rgba(255,255,255,0.7);
}

.v1 {
  width: 90px;
  height: 90px;
  top: 10px;
  right: 10px;
  font-size: 32px;
  background: rgba(79,163,224,0.2);
  border-color: rgba(79,163,224,0.4);
}

.v2 {
  width: 70px;
  height: 70px;
  bottom: 20px;
  right: 40px;
  font-size: 24px;
}

.v3 {
  width: 55px;
  height: 55px;
  top: 60px;
  left: 0;
  font-size: 18px;
  background: rgba(255,255,255,0.08);
}

.visual-lines {
  position: absolute;
  inset: 0;
}

.vl {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.vl1 { width: 2px; height: 120px; top: 20px; left: 40px; transform: rotate(25deg); }
.vl2 { width: 2px; height: 80px; top: 50px; left: 90px; transform: rotate(-15deg); }
.vl3 { width: 2px; height: 60px; top: 30px; left: 130px; transform: rotate(10deg); }

/* 슬라이더 버튼 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background var(--transition);
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.28);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* 슬라이더 인디케이터 */
.slider-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.indicator.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* 슬라이드 카운터 */
.slide-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: 10px;
  z-index: 10;
}


/* ============================================
   BOARD SECTION (게시판 3단)
   ============================================ */
.board-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.board-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.board-box:hover {
  box-shadow: var(--shadow-md);
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.board-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-title h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}

.board-icon {
  font-size: 14px;
  color: var(--color-accent);
}

.board-more {
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 11px;
  transition: all var(--transition);
}

.board-more:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 게시판 목록 */
.board-list {
  padding: 6px 0;
}

.board-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.board-item:last-child {
  border-bottom: none;
}

.board-item:hover {
  background: var(--color-bg);
}

.board-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.item-text {
  font-size: 13px;
  color: var(--color-text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color var(--transition);
}

.board-item a:hover .item-text {
  color: var(--color-primary);
  text-decoration: underline;
}

.item-date {
  font-size: 11.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 배지 */
.item-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.item-badge.new {
  background: #e74c3c;
  color: #fff;
}

.item-badge.req {
  background: var(--color-accent-light);
  color: var(--color-primary-mid);
  border: 1px solid rgba(79,163,224,0.3);
}

.item-badge.file {
  background: rgba(44,90,160,0.08);
  color: var(--color-primary-mid);
  border: 1px solid rgba(44,90,160,0.15);
  font-size: 10px;
}

.item-badge.ans {
  background: #d5f5e3;
  color: #1e8449;
  border: 1px solid rgba(30,132,73,0.2);
}


/* ============================================
   게시판 밴드 (네비 바로 아래)
   ============================================ */
.board-band {
  background: #fff;
  border-top: 3px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(26,58,107,.07);
}

.board-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  min-height: 230px;
}

/* 컬럼 구분선 */
.bb-divider {
  background: var(--color-border-light);
  margin: 16px 0;
}

/* 각 게시판 박스 */
.bb-box {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
}

/* 헤더 */
.bb-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.bb-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}
.bb-icon-qa   { background: #148f77; }
.bb-icon-data { background: #6c5ce7; }

.bb-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-primary);
  flex: 1;
  letter-spacing: -0.2px;
}

.bb-more-btn {
  font-size: 11.5px;
  color: var(--color-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bb-more-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 목록 */
.bb-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  flex: 1;
}

.bb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  gap: 8px;
  border-bottom: 1px dashed var(--color-border-light);
  transition: background .12s;
  cursor: pointer;
}
.bb-item:last-child { border-bottom: none; }
.bb-item:hover { background: #f5f8fd; }

.bb-item a {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.bb-text {
  font-size: 13px;
  color: var(--color-text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color .12s;
}
.bb-item a:hover .bb-text {
  color: var(--color-primary);
  text-decoration: underline;
}

.bb-date {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 배지 */
.bb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.bb-new  { background: #e74c3c; color: #fff; }
.bb-pin  { background: #2c5aa0; color: #fff; }
.bb-req  { background: var(--color-accent-light); color: var(--color-primary-mid); border: 1px solid rgba(79,163,224,.3); }
.bb-file { background: rgba(108,92,231,.1); color: #6c5ce7; border: 1px solid rgba(108,92,231,.2); }

/* 반응형 */
@media (max-width: 900px) {
  .board-band-inner {
    grid-template-columns: 1fr;
  }
  .bb-divider {
    height: 1px;
    margin: 0 12px;
    background: var(--color-border-light);
  }
  .bb-box { min-height: auto; }
}


/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  flex-shrink: 0;
}

.footer-logo-texts {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 14px;
  margin-left: 2px;
}

.footer-site {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  padding: 0 10px;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a.privacy-strong {
  color: var(--color-accent);
  font-weight: 600;
}

.footer-nav .divider {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.footer-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-info p strong {
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}

.copyright {
  margin-top: 2px;
  font-size: 11.5px !important;
  color: rgba(255,255,255,0.4) !important;
}

.related-select {
  height: 32px;
  padding: 0 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  min-width: 160px;
}

.related-select:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}

.related-select option {
  background: var(--color-primary-dark);
  color: #fff;
}


/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: #b0bcc8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7a8a9a; }




/* ============================================
   기관코드 저장 상태 피드백 (CodeSaver 연동)
   ============================================ */

/* 저장됨 체크박스 색상 */
.lf-checkbox-label.code-saved .lf-checkmark {
  background: var(--color-green) !important;
  border-color: var(--color-green) !important;
  box-shadow: 0 0 0 3px rgba(30,132,73,.12);
}

.lf-checkbox-label.code-saved .lf-checkbox-text {
  color: var(--color-green);
  font-weight: 600;
}

/* 저장됨 뱃지 */
.saved-indicator {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--color-green);
  color: #fff;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: .01em;
  line-height: 1.6;
}


/* ============================================================
   기관코드 찾기 팝업 (instFinderPopup)
   ============================================================ */

/* ── 팝업 래퍼 (전체 화면 오버레이) ── */
.if-popup-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.if-popup-wrapper.is-open {
  display: flex;
}

/* ── 반투명 오버레이 ── */
.if-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 55, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── 팝업 카드 ── */
.if-popup {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #c8d4e0;
  border-top: 3px solid #1a3a6b;
  border-radius: 4px;
  width: 700px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(10, 25, 55, 0.20);
  overflow: hidden;
  animation: if-slide-in 0.18s ease;
}
@keyframes if-slide-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* ── 팝업 헤더 ── */
.if-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a3a6b;
  padding: 13px 18px;
  flex-shrink: 0;
}
.if-popup-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.if-popup-title-wrap .fas {
  font-size: 15px;
  color: #8bb8e0;
}
.if-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.if-popup-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.if-popup-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ── 검색 영역 ── */
.if-search-area {
  background: #f4f7fa;
  border-bottom: 1px solid #dce5ee;
  padding: 16px 18px 10px;
  flex-shrink: 0;
}
.if-search-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.if-search-input-wrap {
  flex: 1;
  min-width: 0;
}
.if-filter-wrap {
  width: 120px;
  flex-shrink: 0;
}
.if-search-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #445566;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.if-search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.if-search-prefix-icon {
  position: absolute;
  left: 10px;
  color: #8fa0b2;
  font-size: 13px;
  pointer-events: none;
}
.if-search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #b8c8d8;
  border-radius: 3px;
  padding: 0 10px 0 32px;
  font-size: 13px;
  color: #1e2d40;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.if-search-input:focus {
  border-color: #4fa3e0;
  box-shadow: 0 0 0 3px rgba(79,163,224,0.15);
}
.if-region-select {
  width: 100%;
  height: 36px;
  border: 1px solid #b8c8d8;
  border-radius: 3px;
  padding: 0 8px;
  font-size: 12.5px;
  color: #1e2d40;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.if-region-select:focus {
  border-color: #4fa3e0;
}

/* ── 버튼 공통 ── */
.if-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
/* 검색 버튼 */
.if-btn-search {
  background: #1a3a6b;
  color: #fff;
  border: 1px solid #1a3a6b;
  height: 36px;
  flex-shrink: 0;
  align-self: flex-end;
}
.if-btn-search:hover:not(:disabled) {
  background: #14305a;
  box-shadow: 0 2px 6px rgba(26,58,107,0.25);
}
.if-btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 검색 안내 텍스트 */
.if-search-guide {
  margin-top: 8px;
  font-size: 11.5px;
  color: #6a7f94;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
}
.if-search-guide .fas {
  color: #4fa3e0;
  font-size: 11px;
}

/* ── 결과 영역 ── */
.if-result-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.if-result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 8px;
  border-bottom: 1px solid #e6ecf2;
  background: #fff;
  flex-shrink: 0;
}
.if-result-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a3a6b;
}
.if-result-count {
  font-size: 12px;
  color: #fff;
  background: #4fa3e0;
  padding: 1px 9px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ── 결과 테이블 래퍼 ── */
.if-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.if-table-wrap::-webkit-scrollbar { width: 5px; }
.if-table-wrap::-webkit-scrollbar-track { background: #f0f2f5; }
.if-table-wrap::-webkit-scrollbar-thumb { background: #b0bcc8; border-radius: 3px; }

/* ── 결과 테이블 ── */
.if-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.if-result-table thead tr {
  background: #eef2f7;
  border-bottom: 2px solid #c8d4e0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.if-result-table th {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #3a4e63;
  text-align: left;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.if-th-num    { width: 48px;  text-align: center; }
.if-th-code   { width: 100px; }
.if-th-region { width: 64px;  text-align: center; }
.if-th-type   { width: 80px;  text-align: center; }

/* ── 결과 행 ── */
.if-result-row {
  border-bottom: 1px solid #edf1f6;
  cursor: pointer;
  transition: background 0.1s;
  outline: none;
}
.if-result-row:hover {
  background: #f0f6fc;
}
.if-result-row:focus {
  background: #e8f1fb;
  outline: 2px solid #4fa3e0;
  outline-offset: -2px;
}
.if-result-row.is-selected {
  background: #dbeeff;
}
.if-result-row.is-selected td {
  border-color: #4fa3e0;
}
.if-result-table td {
  padding: 10px 12px;
  vertical-align: middle;
  color: #1e2d40;
}
.if-td-num    { text-align: center; color: #8fa0b2; font-size: 12px; }
.if-td-region { text-align: center; color: #4a6078; font-size: 12px; }
.if-td-type   { text-align: center; }

/* ── 기관명 강조 텍스트 ── */
.if-inst-name {
  font-weight: 500;
  color: #1e2d40;
}
mark.if-highlight {
  background: #ffe066;
  color: #1a3a6b;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

/* ── 기관코드 칩 ── */
.if-code-chip {
  display: inline-block;
  background: #eef2f7;
  color: #1a3a6b;
  font-family: 'Consolas', 'D2Coding', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid #c8d4e0;
  letter-spacing: 0.04em;
}

/* ── 구분 뱃지 ── */
.if-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.if-badge-mgr  { background: #1a3a6b; color: #fff; }
.if-badge-inst { background: #e8f3fd; color: #1a3a6b; border: 1px solid #b3d4f0; }
.if-badge-city { background: #e8f3fd; color: #1a3a6b; border: 1px solid #b3d4f0; }

/* ── 빈 상태 메시지 ── */
.if-empty-cell {
  text-align: center;
  padding: 36px 16px !important;
}
.if-empty-state {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #8fa0b2;
}
.if-empty-state .fas {
  font-size: 28px;
  color: #c0cdd8;
}
.if-empty-state p {
  font-size: 13px;
  color: #5a7080;
  margin: 0;
}
.if-empty-sub {
  font-size: 11.5px !important;
  color: #8fa0b2 !important;
}

/* ── 선택된 기관 미리보기 바 ── */
.if-selected-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ebf7ee;
  border-top: 1px solid #b3d9bc;
  border-bottom: 1px solid #b3d9bc;
  font-size: 13px;
  color: #1e5c32;
  flex-shrink: 0;
  animation: if-fade-in 0.18s ease;
}
.if-selected-preview .fas {
  color: #27ae60;
  font-size: 15px;
}
@keyframes if-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── 팝업 하단 버튼 영역 ── */
.if-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  background: #f4f7fa;
  border-top: 1px solid #dce5ee;
  flex-shrink: 0;
}

/* 선택 버튼 (Primary) */
.if-btn-select {
  background: #1a3a6b;
  color: #fff;
  border: 1px solid #1a3a6b;
  min-width: 110px;
}
.if-btn-select:hover:not(:disabled) {
  background: #14305a;
  box-shadow: 0 2px 6px rgba(26,58,107,0.25);
}
.if-btn-select:disabled {
  background: #b0bcc8;
  border-color: #b0bcc8;
  color: #fff;
  cursor: not-allowed;
}
.if-btn-select.is-active {
  background: #1a7a4b;
  border-color: #1a7a4b;
}
.if-btn-select.is-active:hover:not(:disabled) {
  background: #156040;
}

/* 닫기 버튼 (Secondary) */
.if-btn-close {
  background: #fff;
  color: #445566;
  border: 1px solid #b8c8d8;
}
.if-btn-close:hover {
  background: #f0f4f8;
  border-color: #8fa0b2;
}


/* ============================================================
   비밀번호 등록/재설정 팝업  (pwResetPopup)  .pr-* namespace
   ============================================================ */

/* ── 팝업 래퍼 ── */
.pr-popup-wrapper {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;          /* 기관코드 팝업(9000)보다 위 */
  align-items: center;
  justify-content: center;
}
.pr-popup-wrapper.is-open {
  display: flex;
}

/* ── 반투명 오버레이 ── */
.pr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 55, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── 팝업 카드 ── */
.pr-popup {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #c8d4e0;
  border-top: 3px solid #1a3a6b;
  border-radius: 4px;
  width: 480px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 36px rgba(10, 25, 55, 0.22);
  overflow: hidden;
  animation: pr-drop-in 0.20s cubic-bezier(.22,.68,0,1.2);
}
@keyframes pr-drop-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* ── 팝업 헤더 ── */
.pr-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a3a6b;
  padding: 13px 18px;
  flex-shrink: 0;
}
.pr-popup-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}
.pr-popup-title-wrap .fas {
  font-size: 14px;
  color: #8bb8e0;
}
.pr-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.pr-popup-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  width: 28px;
  height: 28px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.pr-popup-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ── 안내 배너 ── */
.pr-notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eef4fb;
  border-bottom: 1px solid #c8ddef;
  padding: 10px 18px;
  font-size: 12.5px;
  color: #2a4a6a;
  line-height: 1.5;
  flex-shrink: 0;
}
.pr-notice-bar .fas {
  color: #4fa3e0;
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}
.pr-notice-bar strong {
  font-weight: 700;
  color: #1a3a6b;
}

/* ── 폼 본체 ── */
.pr-form {
  padding: 22px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── 필드 그룹 ── */
.pr-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── 레이블 ── */
.pr-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #2a3a4e;
  letter-spacing: 0.01em;
}
.pr-required {
  color: #c0392b;
  font-size: 13px;
  margin-left: 2px;
}

/* ── 입력창 래퍼 ── */
.pr-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pr-input-icon {
  position: absolute;
  left: 11px;
  font-size: 13px;
  color: #8fa0b2;
  pointer-events: none;
  z-index: 1;
}
.pr-input {
  width: 100%;
  height: 38px;
  border: 1px solid #b8c8d8;
  border-radius: 3px;
  padding: 0 38px 0 34px;
  font-size: 13.5px;
  color: #1e2d40;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  font-family: inherit;
}
.pr-input:focus {
  border-color: #4fa3e0;
  box-shadow: 0 0 0 3px rgba(79,163,224,0.15);
}
.pr-input.is-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}
.pr-input.is-valid {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,0.10);
}

/* ── 비밀번호 보기 버튼 ── */
.pr-eye-btn {
  position: absolute;
  right: 9px;
  background: transparent;
  border: none;
  color: #8fa0b2;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.pr-eye-btn:hover { color: #4fa3e0; }

/* ── 비밀번호 강도 바 ── */
.pr-strength-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.pr-strength-bar {
  flex: 1;
  height: 4px;
  background: #e0e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.pr-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
/* 강도 단계 색상 */
.pr-strength-fill.level-1 { width: 25%; background: #c0392b; }
.pr-strength-fill.level-2 { width: 50%; background: #e67e22; }
.pr-strength-fill.level-3 { width: 75%; background: #f1c40f; }
.pr-strength-fill.level-4 { width:100%; background: #27ae60; }

.pr-strength-label {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}
.pr-strength-label.level-1 { color: #c0392b; }
.pr-strength-label.level-2 { color: #e67e22; }
.pr-strength-label.level-3 { color: #c8a000; }
.pr-strength-label.level-4 { color: #27ae60; }

/* ── 비밀번호 일치 인디케이터 ── */
.pr-match-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.pr-match-indicator.match-ok    { color: #27ae60; }
.pr-match-indicator.match-fail  { color: #c0392b; }

/* ── 구분선 ── */
.pr-divider {
  border: none;
  border-top: 1px dashed #dce5ee;
  margin: 0;
}

/* ── 오류 메시지 ── */
.pr-error-msg {
  font-size: 11.5px;
  color: #c0392b;
  min-height: 16px;
  padding-left: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pr-error-msg:not(:empty)::before {
  content: '\f071';             /* fa-exclamation-triangle */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
}

/* ── 저장 성공 패널 ── */
.pr-success-panel {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pr-success-icon .fas {
  font-size: 48px;
  color: #27ae60;
  animation: pr-pop-in 0.35s cubic-bezier(.22,.68,0,1.3);
}
@keyframes pr-pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1);   }
}
.pr-success-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a6b;
}
.pr-success-sub {
  font-size: 13px;
  color: #5a7080;
}


/* ============================================================
   RouterGuard UI 공통 컴포넌트
   ============================================================ */

/* ── 권한 배지 ── */
.rg-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: middle;
}
.rg-badge-manager {
  background: #1a3a6b;
  color: #fff;
  border: 1px solid #1a3a6b;
}
.rg-badge-institute {
  background: #eef6ff;
  color: #1a3a6b;
  border: 1px solid #a8ccf0;
}
.rg-badge-default {
  background: #eaeaea;
  color: #556677;
  border: 1px solid #ccc;
}

/* ── Breadcrumb ── */
.rg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6a7f94;
}
.rg-crumb-link {
  color: #4fa3e0;
  text-decoration: none;
  transition: color 0.12s;
}
.rg-crumb-link:hover { color: #1a3a6b; text-decoration: underline; }
.rg-crumb-sep {
  color: #b0bcc8;
  font-size: 10px;
  margin: 0 2px;
}
.rg-crumb-current {
  color: #1e2d40;
  font-weight: 600;
}

/* ── 하단 버튼 영역 ── */
.pr-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px;
  background: #f4f7fa;
  border-top: 1px solid #dce5ee;
  flex-shrink: 0;
}

/* 공통 버튼 */
.pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-family: inherit;
}
.pr-btn-icon { font-size: 13px; }

/* 저장 버튼 (Primary) */
.pr-btn-primary {
  background: #1a3a6b;
  color: #fff;
  border: 1px solid #1a3a6b;
  min-width: 90px;
  justify-content: center;
}
.pr-btn-primary:hover:not(:disabled) {
  background: #14305a;
  box-shadow: 0 2px 8px rgba(26,58,107,0.25);
}
.pr-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* 저장 완료 상태 */
.pr-btn-primary.is-saved {
  background: #27ae60;
  border-color: #27ae60;
}
.pr-btn-primary.is-saved:hover {
  background: #219a54;
}

/* 종료 버튼 (Secondary) */
.pr-btn-secondary {
  background: #fff;
  color: #445566;
  border: 1px solid #b8c8d8;
  min-width: 80px;
  justify-content: center;
}
.pr-btn-secondary:hover {
  background: #f0f4f8;
  border-color: #8fa0b2;
}

.saved-indicator.pending {
  background: var(--color-primary-mid);
}

/* 인라인 피드백 박스 */
.cs-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-base);
  animation: csFadeIn .22s ease;
}

@keyframes csFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 저장소 비활성 시 체크박스 비활성 스타일 */
#saveCode:disabled + .lf-checkmark {
  background: #e0e0e0 !important;
  border-color: #ccc !important;
  cursor: not-allowed;
}

.lf-checkbox-label:has(#saveCode:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* ============================================
   FOCUS STYLES (접근성)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 3px;
}
