/* 공통 스타일 - 영어학원 성적표 관리 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #1e5a9e;
  --primary-dark: #164a82;
  --primary-light: #e8f0fa;
  --bg: #f0f2f5;
  --white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --border: #dde1e6;
  --success: #2e7d32;
  --warning: #ed6c02;
  --danger: #d32f2f;
  --sidebar-width: 240px;
  --header-height: 60px;
  --input-height: 38px;
  --radius: 6px;
}

html { font-size: 14px; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 레이아웃 */
.app-layout { display: flex; min-height: 100vh; }

/* 사이드바 */
.sidebar {
  width: var(--sidebar-width);
  background: var(--primary);
  color: #fff;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.sidebar-logo {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.sidebar-logo img {
  max-width: 64px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.sidebar-logo h1 { font-size: 0.8rem; margin-top: 6px; font-weight: 500; opacity: 0.9; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.15s;
  text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}
.sidebar-nav a.active {
  border-left: 3px solid #fff;
  border-right: 3px solid transparent;
  padding-left: 17px;
  padding-right: 17px;
}

/* 메인 영역 */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 상단 헤더 */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.page-header h2 { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.page-header .date-display { color: var(--text-muted); font-size: 0.9rem; }
.hamburger {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
}

/* 콘텐츠 */
.page-body { padding: 24px; flex: 1; }

/* 카드 */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-title {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* 폼 */
.form-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.form-group { flex: 1; min-width: 180px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.form-group .required::after { content: ' *'; color: var(--danger); }

input[type="text"], input[type="number"], input[type="date"], input[type="tel"],
input[type="email"], select, textarea {
  width: 100%;
  height: var(--input-height);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  transition: border-color 0.15s;
}
textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--input-height);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b71c1c; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* 테이블 */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table th, table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
table th {
  background: var(--primary-light);
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
}
table tbody tr:hover { background: #f8f9fb; }
table .text-center { text-align: center; }
table .text-right { text-align: right; }

/* 필터 바 */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-bar .form-group { min-width: 140px; margin-bottom: 0; flex: 0 1 auto; }

/* 페이지네이션 */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 16px;
}
.pagination button {
  min-width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 모달 */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* 알림/확인 다이얼로그 */
#app-alert-modal .modal,
#app-confirm-modal .modal {
  max-width: 420px;
}

.dialog-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 4px 4px;
}

.dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-info .dialog-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.dialog-success .dialog-icon {
  background: #e8f5e9;
  color: var(--success);
}

.dialog-warning .dialog-icon {
  background: #fff3e0;
  color: var(--warning);
}

.dialog-danger .dialog-icon {
  background: #ffebee;
  color: var(--danger);
}

.dialog-message {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text);
  word-break: keep-all;
}

#app-alert-modal .modal-footer,
#app-confirm-modal .modal-footer {
  justify-content: center;
}

#app-alert-modal .modal-footer .btn,
#app-confirm-modal .modal-footer .btn {
  min-width: 96px;
}

/* 선생님 평가 메모장 */
.teacher-comment-card .card-title {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.teacher-comment-body {
  min-height: 72px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.95rem;
}

.teacher-comment-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notepad-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #d8c9a3;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.notepad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f7efd8 0%, #f0e4c0 100%);
  border-bottom: 1px solid #e0d0a8;
  font-size: 0.82rem;
  color: #6b5a3a;
}

.notepad-hint {
  flex-shrink: 0;
  color: #9a8558;
  font-variant-numeric: tabular-nums;
}

.notepad-textarea {
  width: 100%;
  min-height: 280px;
  height: 320px;
  padding: 16px 18px;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(transparent 31px, #e8dfc4 31px) 0 0 / 100% 32px,
    #fffdf6;
  background-attachment: local;
  line-height: 32px;
  font-size: 0.98rem;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: #2c2c2c;
  resize: vertical;
  box-shadow: none;
}

.notepad-textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.notepad-textarea::placeholder {
  color: #b5a78a;
  line-height: 32px;
}

#comment-modal .modal {
  max-width: 720px;
}

#comment-modal .modal-body {
  padding: 16px 18px;
}

/* 알림 토스트 */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
  max-width: 400px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* 로딩 */
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 350;
  align-items: center; justify-content: center;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state p { margin-top: 8px; }

/* 배지 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.badge-success { background: #e8f5e9; color: var(--success); }
.badge-warning { background: #fff3e0; color: var(--warning); }
.badge-danger { background: #ffebee; color: var(--danger); }
.badge-info { background: var(--primary-light); color: var(--primary); }

/* 성적 입력 테이블 */
.score-input { width: 60px; text-align: center; }
.score-row-changed { background: #fff8e1 !important; }
.score-row-saved { background: #e8f5e9 !important; }

/* 경고 메시지 */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-warning { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #90caf9; }

/* 그리드 2열 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 성적표 상세 */
.report-document {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.report-header { text-align: center; margin-bottom: 24px; }
.report-header img {
  max-width: 56px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.report-header h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 4px; }
.report-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.report-info-grid .label { color: var(--text-muted); }
.chart-container { margin: 24px 0; height: 280px; }

/* 반응형 */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
}

@media (max-width: 768px) {
  .sidebar-backdrop.show { display: block; }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }
  .sidebar.open { transform: translateX(0); }

  body.sidebar-open { overflow: hidden; }

  .main-content { margin-left: 0; }
  .hamburger { display: block; min-width: 44px; min-height: 44px; }

  .page-header {
    height: auto;
    min-height: var(--header-height);
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .page-header h2 { font-size: 1.1rem; }
  .page-header .date-display {
    width: 100%;
    padding-left: 44px;
    font-size: 0.8rem;
  }

  .page-body { padding: 12px; }

  .card {
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
  .card-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px 10px; }
  .stat-card .stat-value { font-size: 1.5rem; }

  .grid-2 { grid-template-columns: 1fr; gap: 14px; }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .filter-bar .form-group {
    min-width: 100%;
    width: 100%;
  }
  .filter-bar .form-group .btn,
  .filter-bar .btn { width: 100%; }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn { width: 100%; }

  .table-wrap {
    overflow-x: visible;
    margin: 0 -2px;
  }

  /* 테이블 → 카드 리스트 */
  .responsive-table { border: none; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: block; }

  .responsive-table tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(30, 90, 158, 0.06);
  }
  .responsive-table tbody tr:hover { background: var(--white); }
  .responsive-table tbody tr:last-child { margin-bottom: 0; }

  .responsive-table tbody tr[data-card-title]::before {
    content: attr(data-card-title);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
  }

  .responsive-table tbody td.card-title-hidden { display: none; }

  .responsive-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    text-align: right;
    word-break: break-word;
  }
  .responsive-table tbody td:last-child { border-bottom: none; }

  .responsive-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
    min-width: 72px;
    max-width: 42%;
  }

  .responsive-table tbody td.cell-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
    border-bottom: none;
  }
  .responsive-table tbody td.cell-actions::before {
    text-align: center;
    max-width: none;
    margin-bottom: 2px;
  }
  .responsive-table tbody td.cell-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .responsive-table tbody td.cell-input {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .responsive-table tbody td.cell-input::before { max-width: none; }
  .responsive-table tbody td.cell-input input,
  .responsive-table tbody td.cell-input select,
  .responsive-table tbody td.cell-input textarea {
    width: 100%;
  }

  /* 성적 입력 테이블 */
  .table-score-input tbody tr[data-card-title]::before {
    font-size: 1.05rem;
  }
  .table-score-input .score-input {
    width: 100%;
    max-width: none;
    height: 40px;
    font-size: 1rem;
  }
  .table-score-input .comment-input {
    width: 100% !important;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
  }
  .pagination button {
    min-width: 40px;
    height: 40px;
  }

  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }
  .modal-header { padding: 14px 16px; }
  .modal-body { padding: 16px; }
  .modal-footer {
    flex-direction: column;
    padding: 12px 16px;
  }
  .modal-footer .btn { width: 100%; }

  .form-row { flex-direction: column; gap: 10px; }
  .form-group { min-width: 100%; }

  .report-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .report-document { padding: 16px; border-radius: 10px; }
  .chart-container { height: 220px; }

  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }
  .toast { max-width: none; }

  #exam-info {
    font-size: 0.85rem;
    line-height: 1.7;
    word-break: keep-all;
  }

  .empty-state { padding: 28px 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card .stat-value { font-size: 1.75rem; }
  .login-card { padding: 32px 24px; }
}

/* 로그인 페이지 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f0fa 0%, #f0f2f5 50%, #dce8f5 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(30, 90, 158, 0.08);
}

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

.login-logo img {
  max-width: 88px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.login-logo h1 {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.login-logo p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 로그인 비밀번호 입력 */
.login-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  overflow: hidden;
}

.password-input-wrap:hover {
  border-color: #b8cfe8;
  background: var(--white);
}

.password-input-wrap:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.password-input-wrap .input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.7;
}

.password-input-wrap:focus-within .input-icon {
  opacity: 1;
}

.password-input-wrap input {
  flex: 1;
  height: 48px;
  padding: 0 8px 0 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}

.password-input-wrap input:focus {
  outline: none;
  box-shadow: none;
}

.password-input-wrap input::placeholder {
  color: #aab4c0;
  font-size: 0.9rem;
}

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: var(--primary);
}

.password-input-wrap.is-error {
  border-color: var(--danger);
  background: #fff8f8;
  animation: login-shake 0.4s ease;
}

@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.btn-login {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  border-radius: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(30, 90, 158, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 90, 158, 0.35);
}

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

.btn-login:disabled {
  opacity: 0.75;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-logout {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sidebar-logout-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.sidebar-logout-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.sidebar-logout-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

/* 설정 - 비밀번호 변경 */
.password-change-card {
  background: linear-gradient(180deg, #fafcff 0%, var(--white) 100%);
  border-color: #c5d9f0;
}

.password-change-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: -8px 0 20px;
  line-height: 1.6;
}

.password-change-form {
  max-width: 560px;
}

.password-change-form .login-field {
  margin-bottom: 16px;
}

.password-change-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.password-change-actions {
  margin-top: 8px;
  padding-top: 4px;
}

.btn-password-change {
  height: 44px;
  padding: 0 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30, 90, 158, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-password-change:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 90, 158, 0.3);
}

.btn-password-change:active:not(:disabled) {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .password-change-row {
    grid-template-columns: 1fr;
  }

  .btn-password-change {
    width: 100%;
  }
}
