/* ===================================
   동구보건소 구강보건 프로그램 예약 시스템
   공통 스타일시트
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a7fc1;
  --primary-dark: #145f94;
  --primary-light: #e8f4fd;
  --secondary: #2ec4b6;
  --secondary-dark: #1fa99d;
  --accent: #ff6b6b;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --text-dark: #1a202c;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- 헤더 ---- */
.site-header {
  background: linear-gradient(135deg, #1a7fc1 0%, #145f94 60%, #0d4a78 100%);
  color: #fff;
  padding: 0;
  box-shadow: 0 2px 12px rgba(26,127,193,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.header-logo .logo-icon {
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.header-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo .logo-main {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.header-logo .logo-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.82;
  margin-top: 1px;
}

.header-nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.header-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
}

.header-nav a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ---- 히어로 배너 ---- */
.hero-banner {
  background: linear-gradient(135deg, #e8f4fd 0%, #d1ecff 50%, #e0f7f5 100%);
  border-bottom: 1px solid #c8e6f7;
  padding: 56px 24px 48px;
  text-align: center;
}

.hero-banner .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.hero-banner h1 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.hero-banner p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- 메인 컨텐츠 ---- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ---- 섹션 타이틀 ---- */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---- 프로그램 카드 그리드 ---- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

/* ---- 프로그램 카드 ---- */
.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 24px 28px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-header.program1 {
  background: linear-gradient(135deg, #1a7fc1 0%, #145f94 100%);
  color: #fff;
}

.card-header.program2 {
  background: linear-gradient(135deg, #2ec4b6 0%, #1fa99d 100%);
  color: #fff;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.card-header-text h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-header-text .subtitle {
  font-size: 12.5px;
  opacity: 0.87;
  font-weight: 400;
}

.card-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.info-list li .info-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-list li .info-icon.blue { background: #dbeafe; color: #1d4ed8; }
.info-list li .info-icon.teal { background: #d1fae5; color: #065f46; }
.info-list li .info-icon.orange { background: #fed7aa; color: #9a3412; }
.info-list li .info-icon.purple { background: #ede9fe; color: #5b21b6; }

.info-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.capacity-badge.blue { background: #dbeafe; color: #1d4ed8; }
.capacity-badge.teal { background: #d1fae5; color: #065f46; }

.btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: -0.2px;
  margin-top: auto;
}

.btn-apply.primary {
  background: linear-gradient(135deg, #1a7fc1, #145f94);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,127,193,0.3);
}

.btn-apply.primary:hover {
  background: linear-gradient(135deg, #1571ac, #0f4f7e);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,127,193,0.4);
}

.btn-apply.secondary {
  background: linear-gradient(135deg, #2ec4b6, #1fa99d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46,196,182,0.3);
}

.btn-apply.secondary:hover {
  background: linear-gradient(135deg, #26b0a3, #1a948c);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46,196,182,0.4);
}

/* ---- 안내 박스 ---- */
.notice-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-box .notice-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-box .notice-text {
  font-size: 13.5px;
  color: #856404;
  line-height: 1.7;
}

.notice-box .notice-text strong {
  color: #5c4600;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* ---- 폼 스타일 ---- */
.form-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.form-card-header {
  padding: 28px 36px;
  color: #fff;
}

.form-card-header.p1 {
  background: linear-gradient(135deg, #1a7fc1 0%, #145f94 100%);
}

.form-card-header.p2 {
  background: linear-gradient(135deg, #2ec4b6 0%, #1fa99d 100%);
}

.form-card-header .prog-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-card-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.form-card-header p {
  font-size: 13px;
  opacity: 0.88;
  line-height: 1.6;
}

.form-card-body {
  padding: 36px;
}

.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.form-group label .required {
  color: var(--accent);
  margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,127,193,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0bec5;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* 날짜 선택 버튼 */
.date-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.date-btn {
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: inherit;
}

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

.date-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(26,127,193,0.15);
}

.date-btn .date-day {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 3px;
}

.date-btn .date-detail {
  font-size: 12.5px;
  color: var(--text-mid);
  font-weight: 500;
}

.date-btn.selected .date-day,
.date-btn.selected .date-detail {
  color: var(--primary-dark);
}

/* 순위 입력 */
.preference-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.preference-item .rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.rank-badge.r1 { background: #f59e0b; }
.rank-badge.r2 { background: #6b7280; }
.rank-badge.r3 { background: #92400e; }

.preference-item input {
  flex: 1;
}

/* 제출 버튼 */
.btn-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.btn-submit.p1 {
  background: linear-gradient(135deg, #1a7fc1, #145f94);
  box-shadow: 0 4px 14px rgba(26,127,193,0.3);
}

.btn-submit.p1:hover {
  background: linear-gradient(135deg, #1571ac, #0f4f7e);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,127,193,0.4);
}

.btn-submit.p2 {
  background: linear-gradient(135deg, #2ec4b6, #1fa99d);
  box-shadow: 0 4px 14px rgba(46,196,182,0.3);
}

.btn-submit.p2:hover {
  background: linear-gradient(135deg, #26b0a3, #1a948c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46,196,182,0.4);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: var(--transition);
  padding: 8px 0;
}

.btn-back:hover {
  color: var(--primary);
}

/* ---- 완료 페이지 ---- */
.complete-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.complete-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 28px;
  box-shadow: 0 6px 24px rgba(16,185,129,0.2);
}

.complete-page h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.complete-page .complete-msg {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
}

.complete-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px 28px;
  text-align: left;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.complete-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 14px;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-light); font-weight: 500; }
.summary-row .value { color: var(--text-dark); font-weight: 600; text-align: right; flex: 1; margin-left: 12px; }

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26,127,193,0.25);
}

.btn-home:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---- 관리자 페이지 ---- */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.admin-login {
  max-width: 400px;
  margin: 80px auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.admin-login .login-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
}

.admin-login h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.admin-login p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.admin-login input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 18px;
  text-align: center;
  letter-spacing: 8px;
  font-family: inherit;
  margin-bottom: 16px;
  outline: none;
  transition: var(--transition);
}

.admin-login input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,127,193,0.1);
}

.admin-login button {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.admin-login button:hover {
  background: var(--primary-dark);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
}

.admin-header p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue { background: #dbeafe; }
.stat-icon.teal { background: #d1fae5; }
.stat-icon.orange { background: #fed7aa; }
.stat-icon.purple { background: #ede9fe; }

.stat-info .stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 3px;
}

.stat-info .stat-label {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 500;
}

.tab-group {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content {
  background: #fff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--border);
  border-top: none;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.table-toolbar input {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  width: 240px;
  transition: var(--transition);
}

.table-toolbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,127,193,0.08);
}

.btn-excel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: #217346;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-excel:hover {
  background: #195c38;
  transform: translateY(-1px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  background: var(--bg-light);
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-mid);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-dark);
  vertical-align: top;
}

.data-table tr:hover td { background: #f8fafc; }
.data-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-badge.접수 { background: #dbeafe; color: #1d4ed8; }
.status-badge.확정 { background: #d1fae5; color: #065f46; }
.status-badge.취소 { background: #fee2e2; color: #991b1b; }

.no-data {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 14px;
}

.no-data .no-icon { font-size: 36px; margin-bottom: 12px; display: block; }

/* ---- 푸터 ---- */
.site-footer {
  background: #1a202c;
  color: rgba(255,255,255,0.7);
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}

.site-footer strong { color: rgba(255,255,255,0.92); }

/* ---- 알림 토스트 ---- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a202c;
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }

/* ---- 반응형 ---- */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .hero-banner { padding: 40px 16px 36px; }
  .main-content { padding: 32px 16px 60px; }
  .programs-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-page { padding: 28px 16px 60px; }
  .form-card-body { padding: 24px 20px; }
  .form-card-header { padding: 22px 20px; }
  .date-options { grid-template-columns: 1fr; }
  .admin-page { padding: 24px 16px 60px; }
  .tab-btn { padding: 10px 14px; font-size: 13px; }
  .tab-content { padding: 18px 16px; }
  .data-table { font-size: 12.5px; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .header-nav { display: none; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar input { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .complete-page { padding: 40px 16px; }
}

/* ---- 인증샷 갤러리 ---- */
#certGalleryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

@media (max-width: 480px) {
  #certGalleryGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cert-section-wrap { padding: 0 4px; }
}
