/* ============================================================
   Curriculum Member Confirmation Bar — iOS 26 redesign
   (학사일정 "확인" 표 — 연수관리 표 헤더 톤을 참조)
   ============================================================ */

.curr-member-confirm-bar {
  margin-bottom: 1.4rem;
  position: relative;
  overflow-x: auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 22px -10px rgba(15, 23, 42, 0.16),
              0 1px 3px rgba(15, 23, 42, 0.05);
}

/* 설정(톱니) 버튼 */
.member-settings-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 9px;
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.5, 1),
              background-color 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.member-settings-btn:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  transform: rotate(90deg);
}

.member-settings-btn:active {
  transform: rotate(90deg) scale(0.88);
}

/* ── 표 본체 ── */
.confirm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed; /* 열 너비 균등 고정 */
  min-width: 800px;
  background: transparent;
}

.confirm-table thead {
  background: transparent;
}

/* 헤더 셀 — 연한 라벤더 프로스트, 진한 회색 글자 */
.confirm-table th {
  background: rgba(238, 244, 255, 0.96);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  color: #4a5568;
  padding: 0.72rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: center;
  vertical-align: middle;
}

/* 본문 셀 */
.confirm-table td {
  background: transparent;
  padding: 0.7rem 0.5rem;
  border: none;
  text-align: center;
  vertical-align: middle;
}

/* 행 레이블 (구분 / 확인) — 고정 너비 */
.confirm-table .row-label {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  font-weight: 800;
  font-size: 0.8rem;
}
/* "구분" 헤더 레이블 — 헤더 라벤더 톤과 통일 */
.confirm-table th.row-label {
  background: rgba(238, 244, 255, 0.96) !important;
  color: #4a5568;
}
/* 본문의 "확인" 레이블만 살짝 다른 톤으로 구분 */
.confirm-table td.row-label {
  background: rgba(15, 23, 42, 0.035) !important;
  color: #475569;
}

/* 구성원 열 — 균등 분배 */
.confirm-table th:not(.row-label),
.confirm-table td:not(.row-label) {
  width: auto;
  min-width: 80px;
}

/* ── 상태 셀렉트 (알약형) ── */
.confirm-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-width: 86px;
  padding: 0.42rem 0.95rem;
  border: none;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.34, 1.5, 0.5, 1),
              box-shadow 0.2s ease, background-color 0.2s ease;
}

.confirm-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 13px -3px rgba(15, 23, 42, 0.2);
}

.confirm-select:active {
  transform: scale(0.93);
}

.confirm-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* 상태별 색상 — 테두리 없는 부드러운 톤 */
.confirm-select.status-unconfirmed {
  color: #ef4444;
  background: #fef2f2;
}

.confirm-select.status-confirmed {
  color: #16a34a;
  background: #f0fdf4;
}

/* 구성원 미설정 안내 */
.no-members-msg {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  background: transparent;
  border-radius: 14px;
}

.curr-btn-sm {
  margin-left: 10px;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s cubic-bezier(0.34, 1.5, 0.5, 1),
              box-shadow 0.2s ease, background-color 0.2s ease;
}

.curr-btn-sm:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.4);
}

.curr-btn-sm:active {
  transform: scale(0.95);
}

/* ============================================================
   Dark Mode
   ============================================================ */
body.dark-mode .curr-member-confirm-bar {
  background: rgba(30, 41, 59, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 26px -12px rgba(0, 0, 0, 0.6);
}

body.dark-mode .confirm-table th {
  background: rgba(40, 48, 66, 0.92) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.dark-mode .confirm-table th.row-label {
  background: rgba(40, 48, 66, 0.92) !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

body.dark-mode .confirm-table td {
  background: transparent !important;
  color: #cbd5e1 !important;
}

body.dark-mode .confirm-table td.row-label {
  background: rgba(255, 255, 255, 0.055) !important;
  color: #cbd5e1 !important;
}

body.dark-mode .confirm-select.status-unconfirmed {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

body.dark-mode .confirm-select.status-confirmed {
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.18) !important;
}

body.dark-mode .member-settings-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
}

body.dark-mode .member-settings-btn:hover {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

body.dark-mode .no-members-msg {
  color: #94a3b8;
}
