/* =========================================
   관리자 페이지 전용 CSS (PC 1920x1080 최적화)
   ========================================= */

/* ===== 공통 애니메이션 ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 관리자 레이아웃 ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ===== 사이드바 ===== */
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-logo-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: white;
}

.sidebar-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-nav-label {
  padding: 12px 20px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  border-right: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.sidebar-nav-item.active {
  background: rgba(33,150,243,0.2);
  color: white;
  border-right-color: var(--primary);
}

.sidebar-nav-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

.sidebar-logout-btn {
  width: 100%;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-logout-btn:hover {
  background: rgba(255,255,255,0.14);
  color: white;
}

/* ===== 메인 영역 ===== */
.admin-main {
  margin-right: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--white);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge-pill {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.admin-content {
  flex: 1;
  padding: 32px;
  min-height: calc(100vh - 64px);
}

/* ===== 섹션 패널 ===== */
.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

/* ===== 대시보드 ===== */
.dashboard-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 20px;
}

.count-badge {
  background: var(--primary);
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 4px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* 승인 대기 회원 카드 */
.approval-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approval-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.approval-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.approval-info {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.approval-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #764ba2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.approval-details {
  flex: 1;
  min-width: 0;
}

.approval-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.approval-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.member-type-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.approval-date {
  font-size: 13px;
  color: var(--text-muted);
}

.approval-contact {
  font-size: 13px;
  color: var(--text-muted);
}

.approval-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-approve {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-approve:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-reject {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-reject:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-detail {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-detail:hover {
  background: #e2e8f0;
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* 공지사항 빠른 작성 */
.quick-notice-form {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.quick-notice-form .form-input {
  margin-bottom: 12px;
}

.quick-notice-form .form-textarea {
  margin-bottom: 12px;
  resize: vertical;
  min-height: 80px;
}

.quick-notice-options {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.quick-notice-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 최근 공지 */
.recent-notices {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.recent-notice-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recent-notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-light);
}

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

.recent-notice-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pin-badge {
  font-size: 12px;
  flex-shrink: 0;
}

.recent-notice-text {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-notice-date {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.recent-notice-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-link-sm {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-link-sm:hover {
  text-decoration: underline;
}

.btn-link-sm.text-danger {
  color: #ef4444;
}

/* 관리자 계정 관리 */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.admin-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-info {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-details {
  flex: 1;
  min-width: 0;
}

.admin-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.role-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 6px;
}

.role-badge.role-super {
  background: #fef3c7;
  color: #92400e;
}

.role-badge.role-sub {
  background: #dbeafe;
  color: #1e40af;
}

.admin-contact {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.admin-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* 빠른 통계 */
.quick-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-stat-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.quick-stat-item.alert {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
}

.quick-stat-item.warning {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}

.quick-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

.quick-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 2열 레이아웃 */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.half-width {
  /* grid로 관리되므로 별도 스타일 불필요 */
}

/* 반응형 */
@media (max-width: 1024px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
  
  .approval-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .approval-actions button {
    width: 100%;
  }
}

/* ===== 테이블 ===== */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-search-input {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 220px;
}

.admin-search-input:focus {
  border-color: var(--primary);
}

.admin-filter-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B95AA' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

table.data-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table tbody tr:hover {
  background: var(--bg);
}

.action-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ===== 관리자 모달 (PC용 더 큰 크기) ===== */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-box.wide {
  max-width: 800px;
}

.admin-modal-header {
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.admin-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.admin-modal-close:hover {
  background: var(--border-light);
}

.admin-modal-body {
  padding: 24px 28px;
}

.admin-modal-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-light);
}

/* ===== 폼 그리드 ===== */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ===== 토글 스위치 ===== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ===== 파이 차트 대용 통계 표시 ===== */
.mini-stat-bar {
  display: flex;
  gap: 0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.mini-stat-bar-item {
  height: 100%;
  transition: width 0.3s;
}

/* ===== 회원 상세 뷰 ===== */
.member-detail-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 24px 28px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.member-detail-name {
  font-size: 20px;
  font-weight: 700;
}

.member-detail-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 2px;
}

/* ===== 메모 영역 ===== */
.memo-area {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.memo-area-label {
  font-size: 12px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.memo-area textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  resize: vertical;
  min-height: 80px;
  outline: none;
}

/* ===== 관리자 로그인 ===== */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 24px 16px;
}

.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-logo-mark {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 22px;
  margin: 0 auto 14px;
}

.admin-login-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.admin-login-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 페이지네이션 ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--border-light);
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn:hover:not(.active) {
  background: var(--border-light);
}

/* ===== 확인 다이얼로그 ===== */
.confirm-dialog {
  text-align: center;
  padding: 8px 0;
}

.confirm-dialog-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.confirm-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirm-dialog-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 파일 업로드 UI ===== */
.file-upload-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1.5px solid var(--border-light);
}

.file-upload-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}

.file-upload-btn:hover {
  background: var(--primary-light);
}

.file-upload-hint {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.file-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.file-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.2s;
  width: 0%;
}

/* ===== 회원 상세 - 학습자료 선택 ===== */
.detail-material-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
}
.detail-material-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.detail-material-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.detail-material-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.detail-material-item input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.detail-material-thumb {
  width: 44px; height: 28px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--border-light);
  flex-shrink: 0;
}
.detail-material-info { flex: 1; min-width: 0; }
.detail-material-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-material-meta {
  font-size: 11px; color: var(--text-muted); margin-top: 1px;
}
.detail-section-title {
  font-size: 14px; font-weight: 700;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}

.file-progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

.file-uploaded-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1.5px solid var(--success);
}

.file-uploaded-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== 미니바 플레이어 (관리자) ===== */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 800;
  background: linear-gradient(135deg, #1A2744 0%, #2C3E6B 100%);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
}
.mini-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  cursor: pointer;
  gap: 12px;
}
.mini-player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.mini-player-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  flex-shrink: 0;
}
.mini-player-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  height: 6px;
}
.mini-player-wave.active span:nth-child(1) { animation: adminWave 0.8s ease-in-out infinite; }
.mini-player-wave.active span:nth-child(2) { animation: adminWave 0.8s ease-in-out 0.15s infinite; }
.mini-player-wave.active span:nth-child(3) { animation: adminWave 0.8s ease-in-out 0.3s infinite; }
.mini-player-wave.active span:nth-child(4) { animation: adminWave 0.8s ease-in-out 0.45s infinite; }
@keyframes adminWave {
  0%, 100% { height: 4px; background: rgba(255,255,255,0.4); }
  50%       { height: 18px; background: #7EB6FF; }
}
.mini-player-info { flex: 1; min-width: 0; }
.mini-player-title {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-sub {
  font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px;
}
.mini-player-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.mini-ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: white;
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.mini-ctrl-btn:hover  { background: rgba(255,255,255,0.22); }
.mini-ctrl-btn:active { background: rgba(255,255,255,0.3); }
.mini-progress-bar { height: 3px; background: rgba(255,255,255,0.15); }
.mini-progress-fill { height: 100%; background: #7EB6FF; width: 0%; transition: width 0.5s linear; }

/* ===== 확장 플레이어 패널 (관리자) ===== */
.expanded-player {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column; justify-content: flex-end;
  pointer-events: none;
}
.expanded-player.open { pointer-events: auto; }
.expanded-player-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.32s;
}
.expanded-player.open .expanded-player-backdrop { background: rgba(0,0,0,0.5); }
.expanded-player-sheet {
  position: relative;
  background: linear-gradient(170deg, #1A2744 0%, #2C3E6B 60%, #1e3a5f 100%);
  border-radius: 24px 24px 0 0;
  padding: 0 32px 40px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.32,.72,0,1);
  color: white;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.expanded-player.open .expanded-player-sheet { transform: translateY(0); }
.expanded-handle-row {
  display: flex; justify-content: center;
  padding: 14px 0 8px; cursor: pointer;
}
.expanded-handle {
  width: 44px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.3);
}
.expanded-art {
  display: flex; justify-content: center; margin: 12px 0 20px;
}
.expanded-art-inner {
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.expanded-info { text-align: center; margin-bottom: 18px; }
.expanded-title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.expanded-sub   { font-size: 13px; color: rgba(255,255,255,0.55); }
.expanded-loading {
  align-items: center; justify-content: center;
  gap: 8px; padding: 4px 0 8px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.expanded-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: white;
  border-radius: 50%; animation: adminSpin 0.7s linear infinite;
}
@keyframes adminSpin { to { transform: rotate(360deg); } }
.expanded-seek-area { margin-bottom: 12px; }
.expanded-seekbar {
  width: 100%; height: 5px; border-radius: 3px;
  appearance: none; background: rgba(255,255,255,0.2);
  cursor: pointer; outline: none;
}
.expanded-seekbar::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: white; box-shadow: 0 0 6px rgba(0,0,0,0.4); cursor: pointer;
}
.expanded-time-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px;
}
.expanded-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding: 10px 0 20px;
}
.expanded-btn {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; border: none; cursor: pointer;
  transition: transform 0.1s, background 0.15s; position: relative;
}
.expanded-btn:active { transform: scale(0.90); }
.expanded-btn-seek {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
}
.expanded-btn-seek:hover { background: rgba(255,255,255,0.2); }
.expanded-btn-label {
  position: absolute; bottom: 10px;
  font-size: 9px; font-weight: 800; color: rgba(255,255,255,0.9);
}
.expanded-btn-stop {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
}
.expanded-btn-stop:hover { background: rgba(255,255,255,0.2); }
.expanded-btn-play {
  width: 80px; height: 80px; border-radius: 50%;
  background: white; color: #1A2744;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.expanded-btn-play:hover  { background: #E8F0FF; }
.expanded-btn-play.playing { background: #D0E8FF; }
.expanded-action-row { display: flex; justify-content: center; gap: 12px; }
.expanded-action-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: 30px;
  background: rgba(255,255,255,0.13); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.expanded-action-btn:hover { background: rgba(255,255,255,0.22); }

.file-uploaded-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger-light);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}

.file-remove-btn:hover {
  background: var(--danger);
  color: white;
}

/* =============================================
   나의하루 통계 패널 스타일
   ============================================= */
.stats-index-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.stats-index-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-mid);
}
.stats-index-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.stats-index-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 회원 목록 통계 버튼 ===== */
.btn-stats {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-stats:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.btn-stats:active {
  transform: scale(0.96);
}

/* ===== 활동 로그 패널 ===== */
.admin-table thead th {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tbody tr:hover {
  background: var(--bg);
}

/* 활동 유형 뱃지 */
.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* 활동 점수 바 */
.activity-score-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.activity-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ===== 대시보드 활동 로그 카드 ===== */
.activity-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.activity-stat-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.activity-stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

.activity-stat-icon {
  font-size: 32px;
  line-height: 1;
}

.activity-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.activity-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== 대시보드 공지사항 리스트 ===== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.notice-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.notice-list-item:hover {
  background: var(--hover-bg);
  border-color: var(--primary);
}

.notice-list-pin {
  font-size: 14px;
  flex-shrink: 0;
}

.notice-list-content {
  flex: 1;
  min-width: 0;
}

.notice-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notice-list-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== 반응형 ===== */
@media (max-width: 1600px) {
  .activity-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1280px) {
  .activity-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-row {
    flex-direction: column;
  }
  
  .dashboard-section.half-width {
    width: 100%;
  }
}
