/* ========================================================
   똑똑한 멘토링 — 공통 스타일 v11
   단계 B용 베이스 (mockup-final.html의 디자인 시스템 요약)
   ======================================================== */

/* ==================== 기본 리셋 ==================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Roboto, sans-serif;
  font-size: 14px;
  color: #1f2937;
  background: #f3f4f6;
  line-height: 1.5;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
table { border-collapse: collapse; width: 100%; }

/* ==================== 레이아웃 ==================== */
/* 관리자 레이아웃 */
.v10-admin { background: #f3f4f6; min-height: 100vh; }
.v10-topbar {
  height: 56px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: white;
  display: flex; align-items: center;
  padding: 0 20px; gap: 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.v10-topbar .brand { font-weight: bold; font-size: 16px; white-space: nowrap; }
.v10-topbar .main-menu { display: flex; gap: 4px; flex: 1; }
.v10-topbar .main-menu a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px; border-radius: 6px;
  transition: background 0.15s;
}
.v10-topbar .main-menu a:hover,
.v10-topbar .main-menu a.active {
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
}
.v10-topbar .user-info { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.v10-topbar .btn-logout {
  color: white; padding: 6px 12px;
  background: rgba(255,255,255,0.15); border-radius: 4px;
}
.v10-body { display: flex; min-height: calc(100vh - 56px); }
.v10-sidebar {
  width: 200px; background: white; border-right: 1px solid #e5e7eb;
  padding: 16px 8px; flex-shrink: 0;
}
.v10-sidebar a {
  display: block; padding: 10px 14px;
  color: #374151; border-radius: 6px;
  margin-bottom: 2px; transition: background 0.15s;
}
.v10-sidebar a:hover { background: #f3f4f6; text-decoration: none; }
.v10-sidebar a.active { background: #2563eb; color: white; font-weight: 500; }
.v10-content { flex: 1; padding: 20px 24px; min-width: 0; }

/* 사용자 레이아웃 */
.user-layout { background: #f3f4f6; min-height: 100vh; }
.user-topbar {
  background: white; border-bottom: 1px solid #e5e7eb;
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; gap: 24px;
  position: sticky; top: 0; z-index: 100;
}
.user-topbar .brand { font-weight: bold; color: #1e3a5f; }
.user-topbar .user-menu { display: flex; gap: 4px; flex: 1; }
.user-topbar .user-menu a {
  padding: 8px 12px; border-radius: 6px; color: #374151;
}
.user-topbar .user-menu a:hover,
.user-topbar .user-menu a.active {
  background: #2563eb; color: white; text-decoration: none;
}
.user-topbar .btn-logout {
  padding: 6px 12px; background: #f3f4f6;
  border-radius: 4px; color: #374151;
}
.mobile-menu-toggle { display: none; }
.user-content { padding: 20px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) {
  .user-topbar .user-menu { display: none; }
  .mobile-menu-toggle { display: block; background: none; border: 0; font-size: 20px; }
}

/* ==================== 페이지 공통 ==================== */
.page-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb;
}
.page-title h2 { margin: 0; font-size: 20px; }

.section {
  background: white; border-radius: 8px; padding: 16px 20px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section-title {
  font-weight: bold; font-size: 15px;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.summary { color: #6b7280; font-size: 13px; margin: 8px 0; }
.hint { color: #6b7280; font-size: 12px; margin: 4px 0; }
.empty { text-align: center; color: #9ca3af; padding: 40px 20px; }
.muted { color: #9ca3af; font-size: 12px; }
.ctr { text-align: center; padding: 16px 0; }

/* 2열 */
.row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .row-2col { grid-template-columns: 1fr; } }

/* ==================== 검색바 / 탭 ==================== */
.search-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: white; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-bar input[type=text],
.search-bar input[type=date],
.search-bar select {
  padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px;
}
.search-bar input[type=text] { min-width: 180px; }
.search-bar label { display: inline-flex; align-items: center; gap: 6px; }

.tabs {
  display: flex; gap: 2px; border-bottom: 2px solid #e5e7eb; margin-bottom: 16px;
  flex-wrap: wrap;
}
.tabs .tab, .tabs a.tab {
  padding: 10px 16px; color: #6b7280; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  text-decoration: none;
}
.tabs .tab:hover { color: #1f2937; }
.tabs .tab.active { color: #2563eb; border-color: #2563eb; }

/* ==================== 버튼 ==================== */
.btn {
  display: inline-block; padding: 6px 12px; border: 1px solid transparent;
  border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all 0.15s; text-decoration: none; background: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.bp { background: #2563eb; color: white; border-color: #2563eb; }
.btn.bp:hover { background: #1d4ed8; }
.btn.bs { background: white; color: #374151; border-color: #d1d5db; }
.btn.bs:hover { background: #f9fafb; }
.btn.bd { background: white; color: #dc2626; border-color: #fecaca; }
.btn.bd:hover { background: #fef2f2; }

/* ==================== 테이블 ==================== */
.dt {
  background: white; border-radius: 6px; overflow: hidden;
  font-size: 13px;
}
.dt thead th {
  background: #f9fafb; color: #374151; font-weight: 600;
  padding: 10px 8px; text-align: center; border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.dt tbody td {
  padding: 10px 8px; border-bottom: 1px solid #f3f4f6;
  text-align: center;
}
.dt tbody tr:hover { background: #f9fafb; }
.dt .c { text-align: center; }
.dt .l { text-align: left; }
.dt .r { text-align: right; }
.dt td small { color: #9ca3af; font-size: 11px; }

/* ========== 멘티관리 리스트 컬럼별 정렬 ==========
   체크(1) No(2) 이름(3) 학교학년(4) 연락처(5) 학부모(6) 최근신청(7) 과목(8) 상태(9) 관리(10) */
.menty-list td { text-align: center; }
.menty-list td:nth-child(4),   /* 학교/학년 */
.menty-list td:nth-child(7),   /* 최근 신청 */
.menty-list td:nth-child(10) { /* 관리 */
  text-align: left;
}

/* Form Table (ft) */
.ft { background: white; border-radius: 6px; }
.ft tr th, .ft tr td {
  padding: 10px 12px; border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
.ft tr th {
  background: #f9fafb; width: 180px; font-weight: 600;
  color: #374151; text-align: left;
}
.ft tr td input[type=text],
.ft tr td input[type=number],
.ft tr td input[type=date],
.ft tr td input[type=email],
.ft tr td input[type=password],
.ft tr td select,
.ft tr td textarea {
  padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px;
  font-size: 14px;
}
.ft tr td .w100 { width: 100%; }
.ft tr td label { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }

/* ==================== Badge ==================== */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500; background: #e5e7eb; color: #374151;
  white-space: nowrap;
}
.badge-준비중  { background: #e5e7eb; color: #374151; }
.badge-모집중  { background: #dbeafe; color: #1e40af; }
.badge-진행중  { background: #dcfce7; color: #166534; }
.badge-완료    { background: #f3f4f6; color: #6b7280; }
.badge-활성    { background: #dcfce7; color: #166534; }
.badge-비활성  { background: #fee2e2; color: #991b1b; }
.badge-휴면    { background: #fef3c7; color: #92400e; }
.badge-탈퇴    { background: #e5e7eb; color: #4b5563; }
.badge-신청    { background: #fef3c7; color: #92400e; }
.badge-확정    { background: #dbeafe; color: #1e40af; }
.badge-제외    { background: #fee2e2; color: #991b1b; }
.badge-대기    { background: #fef3c7; color: #92400e; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-admin   { background: #fef3c7; color: #92400e; }
.badge-mentor  { background: #dbeafe; color: #1e40af; }
.badge-mentee  { background: #e0e7ff; color: #3730a3; }
.badge-상담    { background: #dbeafe; color: #1e40af; }
.badge-전화    { background: #dcfce7; color: #166534; }
.badge-메모    { background: #e5e7eb; color: #374151; }
.badge-컴플레인 { background: #fee2e2; color: #991b1b; }
.badge-하차    { background: #fef3c7; color: #92400e; }

/* ==================== Alert ==================== */
.alert {
  padding: 10px 14px; border-radius: 6px; margin-bottom: 12px;
  font-size: 13px; border: 1px solid transparent;
}
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-warn    { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ==================== 페이징 ==================== */
.pagination {
  display: flex; justify-content: center; gap: 4px;
  margin-top: 20px; padding: 10px;
}
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border: 1px solid #d1d5db; border-radius: 4px;
  color: #374151; text-decoration: none;
}
.pagination a:hover { background: #f3f4f6; }
.pagination a.active { background: #2563eb; color: white; border-color: #2563eb; }

/* ==================== 대시보드 전용 ==================== */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: white; padding: 16px 20px; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); text-align: center;
}
.stat-label { color: #6b7280; font-size: 13px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: bold; color: #1e3a5f; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.biz-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px;
}
.biz-card {
  background: #f9fafb; padding: 12px 16px; border-radius: 6px; border: 1px solid #e5e7eb;
}
.biz-card-header {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 500; margin-bottom: 8px;
}
.biz-card-body { font-size: 12px; color: #6b7280; line-height: 1.8; }

.todo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.todo-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; background: #f9fafb; border-radius: 6px;
  color: #374151; border: 1px solid #e5e7eb;
}
.todo-item:hover { background: #eff6ff; border-color: #bfdbfe; text-decoration: none; }
.todo-item b { color: #2563eb; font-size: 18px; }
@media (max-width: 768px) { .todo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==================== 프로필 카드 ==================== */
.profile-card {
  background: linear-gradient(135deg, #f0f9ff, white);
  padding: 16px 20px; border-radius: 8px; border: 1px solid #e0f2fe;
  margin-bottom: 16px;
}
.profile-card > div { margin-bottom: 4px; font-size: 13px; }
.profile-card > div:first-child { margin-bottom: 10px; font-size: 16px; }

/* ==================== 상담메모 ==================== */
.memo-list { margin-bottom: 16px; }
.memo-item {
  padding: 12px 16px; background: #f9fafb; border-radius: 6px;
  margin-bottom: 8px; border-left: 3px solid #2563eb;
}
.memo-head {
  display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
  font-size: 12px;
}
.memo-body { font-size: 14px; color: #1f2937; }
.memo-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding-top: 12px; border-top: 1px solid #e5e7eb;
}
.memo-form select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; }
.memo-form textarea {
  flex: 1; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px;
  font-family: inherit; resize: vertical;
}

/* ==================== 모달 ==================== */
.modal.hidden { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
}
.modal-box {
  position: relative; background: white; border-radius: 8px;
  max-width: 700px; width: 90%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 14px 20px; border-bottom: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-header button {
  background: none; border: 0; font-size: 20px; cursor: pointer; color: #6b7280;
}
.modal-body { padding: 20px; }

/* ==================== 유틸리티 ==================== */
.hidden { display: none !important; }
code {
  background: #f3f4f6; padding: 2px 6px; border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
}

/* ==================== Toast ==================== */
#toast {
  position: fixed; top: 80px; right: 20px; z-index: 9999;
  background: #1f2937; color: white; padding: 12px 20px;
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px; animation: slideIn 0.3s;
}
#toast.toast-success { background: #16a34a; }
#toast.toast-error   { background: #dc2626; }
#toast.toast-warn    { background: #d97706; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================================================
   v11 mockup 기반 확장 (단계 F)
   ======================================================== */

/* Hero 배너 (사용자 대시보드) */
.hero {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  margin-bottom: 14px;
}
.hero-st {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
}

/* 수업방 헤더 */
.cls-hd {
  background: #1e3a5f;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  margin-bottom: 12px;
}
.cls-hd .btn-out {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 진행률 바 */
.pb { width: 60px; height: 6px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.pb.lg { width: 100%; height: 8px; }
.pf { height: 100%; background: #3b82f6; border-radius: 99px; transition: width 0.3s; }
.pf.green { background: #16a34a; }
.pf.orange { background: #ea580c; }
.pf.red { background: #dc2626; }

/* 요일 선택 버튼 (멀티) */
.day-box {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
}
.day-btn {
  padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 12px; cursor: pointer; user-select: none;
  background: white; transition: all 0.15s;
}
.day-btn:hover { background: #dbeafe; }
.day-btn.active { background: #2563eb; color: white; border-color: #2563eb; }

/* 카드 스타일 */
.card-hover {
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px;
  margin-bottom: 10px; cursor: pointer; transition: box-shadow 0.2s;
  background: white;
}
.card-hover:hover { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }

/* 섹션 타이틀 v2 */
.stitle {
  font-weight: 700; font-size: 14px;
  border-bottom: 2px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 12px;
}

/* 컨디션 그리드 (매칭 옵션) */
.cond-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cond-item { font-size: 12px; }
.cond-item label { display: block; font-weight: 600; margin-bottom: 4px; color: #475569; }

/* 플렉스 유틸 */
.flex { display: flex; }
.fw { display: flex; flex-wrap: wrap; }
.gap4 { gap: 4px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* 텍스트 색상 */
.text-blue   { color: #2563eb; }
.text-red    { color: #dc2626; }
.text-orange { color: #ea580c; }
.text-green  { color: #16a34a; }
.text-gray   { color: #6b7280; }
.fw600 { font-weight: 600; }
.fw700 { font-weight: 700; }

/* 입장 배지 */
.enter-badge-late {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 600;
}
.enter-badge-active {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 10px;
  background: #dcfce7; color: #166534; font-size: 11px; font-weight: 600;
  animation: pulse-green 1.5s infinite;
}
@keyframes pulse-green {
  0%, 100% { background: #dcfce7; }
  50% { background: #bbf7d0; }
}

/* 반응형 테이블 스크롤 */
@media (max-width: 900px) {
  .dt-scroll { overflow-x: auto; }
  .dt-scroll table { min-width: 700px; }
}

/* 모바일 최적화 (Public 페이지) */
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .todo-grid { grid-template-columns: 1fr !important; }
  .cond-grid { grid-template-columns: 1fr !important; }
  .row-2col { grid-template-columns: 1fr !important; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar input, .search-bar select { width: 100%; }
  .page-title { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 프린트용 */
@media print {
  .v10-topbar, .v10-sidebar, .user-topbar, .btn, .search-bar, .tabs, .pagination, .ctr { display: none !important; }
  .v10-content, .user-content { padding: 0; }
  .section { box-shadow: none; border: 1px solid #e5e7eb; }
}

/* ========================================================================= */
/* ★ 페이지별 전용 스타일 (기존 파일의 <style> 블록에서 이관) */
/* ========================================================================= */

/* -------------------------------------------------------------------------
 * 공개 레이아웃 (layouts/tpl_layout_public.php)
 * 로그인/모집 등 퍼블릭 페이지의 그라데이션 배경
 * ----------------------------------------------------------------------- */
.public-layout {
  min-height: 100vh; margin: 0;
  background: linear-gradient(135deg, #1e3a5f, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.public-container { width: 100%; max-width: 480px; }
.public-container.wide { max-width: 900px; }
.public-hero { text-align: center; color: white; margin-bottom: 24px; }
.public-hero .logo { font-size: 32px; font-weight: bold; }
.public-hero p { margin-top: 8px; opacity: 0.9; }
.public-card {
  background: white; border-radius: 12px; padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.public-footer {
  text-align: center; color: rgba(255,255,255,0.8);
  margin-top: 24px; font-size: 13px;
}
@media (max-width: 720px) {
  .public-container.wide { max-width: 480px; }
  .public-card { padding: 20px 16px; }
}

/* -------------------------------------------------------------------------
 * 공개 모집 폼 (pages/public/public_recruit_mentor_qr.php)
 * ----------------------------------------------------------------------- */
.recruit-section {
  background:#f9fafb; padding:18px; border-radius:8px;
  margin-bottom:16px; border:1px solid #e5e7eb;
}
.recruit-section .rs-title {
  margin:0 0 10px 0; font-size:15px; color:#1e3a8a;
  padding-bottom:8px; border-bottom:1px solid #e0e7ff;
}
.recruit-section .rs-hint {
  margin:6px 0 10px 0; color:#6b7280; font-size:12px; line-height:1.6;
}
.recruit-section .req { color:#dc2626; }
.recruit-section .char-hint { color:#9ca3af; font-size:11px; font-weight:normal; }
.recruit-section .form-row {
  display:flex; align-items:center; gap:10px; margin-bottom:10px;
}
.recruit-section .form-row .lbl {
  min-width:110px; font-weight:500; color:#374151; font-size:13px;
}
.recruit-section .form-row input[type=text],
.recruit-section .form-row input[type=email] {
  flex:1; padding:8px 10px; border:1px solid #d1d5db;
  border-radius:4px; font-size:13px;
}
.recruit-section .form-row-block { margin-bottom:12px; }
.recruit-section .lbl-block {
  font-weight:500; color:#374151; font-size:13px; margin-bottom:6px;
}
.recruit-section .form-row-block textarea {
  width:100%; padding:8px 10px; border:1px solid #d1d5db;
  border-radius:4px; font-size:13px; resize:vertical; font-family:inherit;
}
.recruit-section .radio-block,
.recruit-section .check-block {
  display:block; padding:6px 10px; margin-bottom:4px;
  cursor:pointer; font-size:13px; border-radius:4px;
}
.recruit-section .radio-block:hover,
.recruit-section .check-block:hover { background:#eef2ff; }
.recruit-section .radio-inline,
.recruit-section .check-inline {
  display:inline-block; margin-right:14px; margin-bottom:4px;
  font-size:13px; cursor:pointer;
}
.recruit-section .radio-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:4px;
}
.recruit-section .sub-question {
  margin-top:10px; padding:12px; background:#fff;
  border-left:3px solid #3b82f6; border-radius:4px;
}
.recruit-section .sub-title {
  font-size:13px; font-weight:500; color:#1e40af; margin-bottom:6px;
}
@media (max-width:640px) {
  .recruit-section .form-row { flex-direction:column; align-items:stretch; gap:4px; }
  .recruit-section .form-row .lbl { min-width:auto; }
  .recruit-section .radio-grid { grid-template-columns:repeat(2,1fr); }
}

/* -------------------------------------------------------------------------
 * 멘토풀 상세 모달 (pages/admin/admin_mento_pool.php)
 * ----------------------------------------------------------------------- */
.tab-btn {
  padding: 6px 14px; border: none; background: none;
  font-size: 13px; color: #64748b; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active {
  color: #2563eb; border-bottom-color: #2563eb; font-weight: 700;
}
.modal-body {
  padding: 16px; height: 65vh; overflow-y: auto;
}
.pd-pane { /* 부모가 고정이라 min-height 불필요 */ }

/* -------------------------------------------------------------------------
 * 수업방 크게 보기 모드 (pages/user/user_classroom.php)
 * ----------------------------------------------------------------------- */
#zoomedSummaryBar {
  position:fixed; top:0; left:0; right:0;
  display:none; z-index:9997;
  background:#1e3a5f; color:#fff;
  padding:0 16px; height:44px;
  align-items:center; gap:20px;
  font-size:13px; box-sizing:border-box;
  box-shadow:0 2px 4px rgba(0,0,0,0.2);
}
#zoomedSummaryBar .zb-item { display:flex; align-items:center; gap:6px; }
#zoomedSummaryBar .zb-session { font-weight:600; font-size:14px; }
#zoomedSummaryBar .zb-ok { color:#86efac; font-weight:500; }
#zoomedSummaryBar .zb-wait { color:#fca5a5; font-weight:500; }
body.classroom-zoomed #zoomedSummaryBar { display:flex !important; }

body.classroom-zoomed {
  overflow:hidden; margin:0; padding:0; background:#000;
}
body.classroom-zoomed .user-topbar,
body.classroom-zoomed .page-title,
body.classroom-zoomed #participantsBar,
body.classroom-zoomed #captureStatus,
body.classroom-zoomed footer,
body.classroom-zoomed .user-footer,
body.classroom-zoomed .section {
  display:none !important;
}
body.classroom-zoomed .user-content {
  max-width:100% !important; width:100% !important;
  margin:0 !important; padding:0 !important;
}
body.classroom-zoomed #jitsiContainer {
  position:fixed; top:44px; left:0; right:0; bottom:60px;
  width:100vw !important; height:calc(100vh - 104px) !important;
  border-radius:0; z-index:9998; margin:0;
}
body.classroom-zoomed #controlBar {
  position:fixed; left:0; right:0; bottom:0;
  background:#111; padding:10px 0; z-index:9999; margin:0;
  border-top:1px solid #333; height:60px; box-sizing:border-box;
}
body.classroom-zoomed #controlBar .btn {
  color:#fff !important; border:1px solid #666 !important;
  background:#374151 !important;
}
body.classroom-zoomed #controlBar .btn.bp {
  color:#fff !important; background:#2563eb !important; border-color:#2563eb !important;
}
body.classroom-zoomed #controlBar .btn.bd {
  color:#fff !important; background:#dc2626 !important; border-color:#dc2626 !important;
}
body.classroom-zoomed #controlBar .btn.bs {
  color:#fff !important; background:#374151 !important; border-color:#6b7280 !important;
}

/* -------------------------------------------------------------------------
 * 나의 학습방 (pages/user/user_mypage.php)
 * ----------------------------------------------------------------------- */
.biz-workspace {
  background:#fff; border:1px solid #e5e7eb;
  border-radius:10px; margin-bottom:16px; overflow:hidden;
}
.biz-ws-head {
  padding:14px 18px; background:#f9fafb;
  border-bottom:1px solid #e5e7eb; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
}
.biz-ws-head:hover { background:#f3f4f6; }
.biz-ws-head h3 { margin:0; font-size:16px; color:#1e3a5f; }
.biz-ws-head .toggle-icon {
  font-size:18px; color:#6b7280; transition:transform 0.2s;
}
.biz-ws-body.collapsed { display:none; }
.biz-ws-body { padding:16px 18px; }

.layer {
  padding:12px 14px; margin-bottom:10px; border-radius:6px;
  background:#f9fafb; border-left:3px solid #94a3b8;
}
.layer-title {
  font-size:13px; color:#6b7280; font-weight:600; margin-bottom:8px;
}
.layer-stats { background:#eff6ff; border-left-color:#3b82f6; }
.layer-match { background:#f0fdf4; border-left-color:#16a34a; }
.layer-apply { background:#fef3c7; border-left-color:#f59e0b; }

/* 키-값 테이블 형식 */
.kv-table {
  width:100%; border-collapse:collapse; font-size:13px;
}
.kv-table th {
  text-align:left; padding:4px 8px 2px 0;
  color:#6b7280; font-weight:500; white-space:nowrap;
  border:none; background:transparent; font-size:12px;
}
.kv-table td {
  padding:2px 8px 6px 0; color:#1f2937; font-weight:500;
  border:none; background:transparent;
}
@media (max-width: 640px) {
  .kv-table th, .kv-table td { display:block; padding:2px 0; }
}

.stat-badge {
  display:inline-block; padding:2px 8px;
  border-radius:10px; font-size:12px; margin:0 3px 0 0;
}
.stat-done { background:#dcfce7; color:#166534; }
.stat-up   { background:#dbeafe; color:#1e40af; }
.stat-abs  { background:#fee2e2; color:#991b1b; }
.stat-rep  { background:#fef3c7; color:#92400e; }

.biz-status-badge {
  padding:3px 10px; border-radius:12px;
  font-size:12px; font-weight:500; margin-left:8px;
}
.status-진행중 { background:#dbeafe; color:#1e40af; }
.status-모집중 { background:#dcfce7; color:#166534; }
.status-완료   { background:#e5e7eb; color:#4b5563; }
.status-준비중 { background:#fef3c7; color:#92400e; }

/* -------------------------------------------------------------------------
 * 팝업 템플릿 (templates/tpl_popup.php)
 * ----------------------------------------------------------------------- */
.popup-wrap {
  position: fixed;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  z-index: 10000;
  overflow: hidden;
  font-family: inherit;
}
.popup-wrap.pos-center {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.popup-head {
  background: #1e3a5f; color: #fff;
  padding: 10px 14px; font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.popup-close {
  background: none; border: none; color: #fff;
  font-size: 18px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.popup-body {
  padding: 14px; overflow: auto; line-height: 1.6;
}
.popup-body img { max-width: 100%; height: auto; }
.popup-foot {
  padding: 8px 14px; background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.popup-foot label {
  cursor: pointer; color: #6b7280; user-select: none;
}


/* -------------------------------------------------------------------------
 * 시스템 멘토 모집 폼 (pages/user/user_recruit_mentor_sys.php)
 * (QR 모집 폼과 함께 .recruit-section 스타일 공유하며 추가 요소만 정의)
 * ----------------------------------------------------------------------- */

/* 헤더 배너 */
.recruit-intro-banner {
  background: linear-gradient(135deg, #1e3a8a, #3730a3);
  color: #fff; padding: 20px 22px; border-radius: 8px; margin-bottom: 14px;
}
.recruit-intro-banner h2,
.recruit-intro-banner h3 { margin: 0 0 4px 0; font-size: 17px; }
.recruit-intro-banner p  { margin: 0; opacity: 0.9; font-size: 13px; }

/* 사업 개요 카드 */
.recruit-info-card {
  background: #f0f9ff; padding: 14px 16px; border-radius: 6px;
  margin-bottom: 16px; border-left: 3px solid #2563eb;
  font-size: 13px; line-height: 1.7;
}
.recruit-info-card .rc-title { font-weight: 600; color: #1e40af; margin-bottom: 6px; }
.recruit-info-card .rc-grid  { display: grid; gap: 2px; }
.recruit-info-card .rc-warn  { margin-top: 6px; color: #b91c1c; font-weight: 500; }

/* 에러 메시지 */
.alert-recruit { padding: 12px; border-radius: 6px; margin-bottom: 12px; }

/* A그룹 readonly 프로필 박스 - 차분한 톤 */
.recruit-readonly { background: #f1f5f9; border-color: #cbd5e1; }

/* 개인정보 동의 고지문 */
.privacy-notice {
  background: #fef9c3; padding: 12px; border-radius: 4px;
  font-size: 12px; color: #713f12; line-height: 1.7; margin-bottom: 10px;
}
.privacy-notice .pn-legal { color: #6b7280; }

/* 인라인 힌트 */
.rs-hint-inline { margin-top: -4px !important; }

/* 서브 질문 박스 내 텍스트 입력 */
.recruit-section .sub-input {
  margin-top: 6px; width: 100%; padding: 6px 8px;
  border: 1px solid #d1d5db; border-radius: 4px; font-size: 13px;
}

/* 지원 경로 "기타" 행 (텍스트 입력 포함) */
.check-block-etc input[type=text] {
  width: 260px; padding: 6px 8px; border: 1px solid #d1d5db;
  border-radius: 4px; font-size: 13px; margin-left: 6px;
}

/* 제출 버튼 블록 */
.recruit-submit-block { margin: 24px 0 40px; text-align: center; }
.btn-recruit-submit {
  width: 100%; padding: 16px; font-size: 16px; font-weight: 600;
  margin-bottom: 8px;
}
.submit-hint {
  text-align: center; color: #6b7280;
  font-size: 12px; margin-top: 10px;
}

/* 모집 폼 최상위 컨테이너 (QR 폼) */
.recruit-form-wrap { max-width: 720px; margin: 0 auto; }

/* 지원 완료 페이지 박스 */
.recruit-success-box { max-width: 600px; margin: 40px auto; text-align: center; }
.recruit-success-box h2 { color: #16a34a; margin-bottom: 20px; }
.recruit-success-box .alert-success { padding: 16px; border-radius: 8px; }
.recruit-success-box .success-footer {
  color: #6b7280; font-size: 13px; margin-top: 20px;
}

/* 멘토풀 apply_status 전용 뱃지 (신청 → 최종까지 단계별 색상 구분) */
.badge-pool-신청         { background: #fef3c7; color: #92400e; }  /* 노랑 — 대기/검토 */
.badge-pool-서류합격     { background: #dbeafe; color: #1e40af; }  /* 파랑 — 1차 통과 */
.badge-pool-서류불합격   { background: #e5e7eb; color: #374151; }  /* 회색 — 종결 */
.badge-pool-면접합격     { background: #dcfce7; color: #166534; }  /* 초록 — 최종 통과 */
.badge-pool-면접불합격   { background: #fee2e2; color: #991b1b; }  /* 빨강 — 최종 탈락 */
.badge-pool-영구제외     { background: #1f2937; color: #f9fafb; }  /* 검정 — 블랙리스트 */
/* ============================================================
 * admin_mento v2 (6탭) — 추가 스타일 (2026-04-25)
 * ============================================================ */

/* 정보 그리드 — 한 줄 3셀 (반응형) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  padding: 10px 0;
}
.info-cell {
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}
.info-cell label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 3px;
  font-weight: 600;
}
.info-cell > div {
  font-size: 14px;
  color: #111827;
  word-break: break-word;
}

/* 풀 폭 셀 (희망 과목, 가능 시간 등 긴 정보) */
.info-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 4px 0;
}
.info-cell-full {
  padding: 10px 14px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}
.info-cell-full label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 600;
}
.info-cell-full > div {
  font-size: 14px;
  color: #111827;
  line-height: 1.6;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* 작은 버튼 (테이블 행 안에서) */
.btn.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ============================================================
 * 수업 상태별 배지 색상 (admin_mento/menty 수업이력 탭)
 * 추가: 2026-04-25
 * ============================================================ */
.badge-임시       { background: #f3f4f6; color: #6b7280; border:1px solid #e5e7eb; }
.badge-예정       { background: #dbeafe; color: #1e40af; }
.badge-진행중     { background: #fef3c7; color: #92400e; }
.badge-결강       { background: #fee2e2; color: #991b1b; }
.badge-오류       { background: #fce7f3; color: #9d174d; }
.badge-변경대기   { background: #fef3c7; color: #92400e; }
.badge-거절       { background: #fee2e2; color: #991b1b; }
.badge-멘토교체   { background: #ede9fe; color: #5b21b6; }
.badge-멘티하차   { background: #fed7aa; color: #9a3412; }