/* ================================================
   신우디엔시 리뷰평가 - 스타일
   ================================================ */

:root {
  --primary:   #4F46E5;
  --primary-d: #3730A3;
  --primary-l: #EEF2FF;
  --success:   #059669;
  --warning:   #D97706;
  --danger:    #DC2626;
  --info:      #0891B2;
  --bg:        #F1F5F9;
  --card:      #FFFFFF;
  --border:    #E2E8F0;
  --text:      #1E293B;
  --text-2:    #64748B;
  --sidebar-w: 240px;
  --radius:    12px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ==============================
   로그인 오버레이
   ============================== */
.login-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4338CA 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.login-overlay.hidden { display: none; }

.login-card {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
}
.login-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px; color: #fff;
}
.login-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.login-badge {
  display: inline-block;
  background: #EEF2FF; color: var(--primary);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 24px;
}
.login-sub {
  font-size: 13px; color: var(--text-2);
  margin-bottom: 20px;
}
.role-cards { display: flex; flex-direction: column; gap: 12px; }
.role-card {
  display: flex; align-items: center; gap: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
}
.role-card:hover { border-color: var(--primary); background: var(--primary-l); }
.role-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.admin-icon { background: #EEF2FF; color: var(--primary); }
.user-icon  { background: #ECFDF5; color: var(--success); }
.role-info { flex: 1; text-align: left; }
.role-name { display: block; font-weight: 700; font-size: 14px; }
.role-desc { display: block; font-size: 12px; color: var(--text-2); }
.role-arrow { color: var(--text-2); transition: .2s; }
.role-card:hover .role-arrow { color: var(--primary); transform: translateX(4px); }

/* ==============================
   비밀번호 모달
   ============================== */
.pw-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.pw-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%; max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.pw-modal-icon {
  width: 56px; height: 56px;
  background: var(--primary-l);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px; color: var(--primary);
}
.pw-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pw-modal-desc  { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.pw-input-wrap  { position: relative; margin-bottom: 6px; }
.pw-input {
  width: 100%; height: 44px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0 44px 0 14px;
  font-size: 14px; outline: none;
  transition: border-color .2s;
}
.pw-input:focus { border-color: var(--primary); }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-2); font-size: 15px;
}
.pw-error {
  font-size: 12px; font-weight: 600;
  color: var(--danger); min-height: 18px;
  margin-bottom: 14px;
}
.pw-modal-btns {
  display: flex; gap: 8px;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.shake { animation: shake .35s ease; }

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

/* 사이드바 */
.sidebar {
  width: var(--sidebar-w);
  background: #1E1B4B;
  color: #fff;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
  transition: transform .3s;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.logo-icon { font-size: 22px; color: #A5B4FC; }
.logo-title { display: block; font-size: 13px; font-weight: 700; }
.logo-sub   { display: block; font-size: 11px; color: #A5B4FC; }

.sidebar-nav { flex: 1; padding: 14px 0; }
.nav-section-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 20px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.7);
  border-radius: 0; cursor: pointer;
  transition: all .2s;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active { color: #fff; background: var(--primary); }

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; flex: 1; }
.user-avatar  {
  width: 34px; height: 34px; border-radius: 50%;
  background: #4F46E5;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: #A5B4FC; }
.logout-btn {
  width: 30px; height: 30px; border-radius: 6px;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: .2s;
}
.logout-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* 메인 콘텐츠 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* 상단 헤더 */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 50;
}
.sidebar-toggle {
  font-size: 16px; color: var(--text-2);
  padding: 6px; border-radius: 6px;
  display: none;
}
.sidebar-toggle:hover { background: var(--bg); }
.breadcrumb {
  flex: 1; display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.breadcrumb i { color: var(--text-2); }
.topbar-badge {
  display: flex; align-items: center; gap: 5px;
  background: var(--primary-l); color: var(--primary);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
}

/* 페이지 */
.page { display: none; padding: 24px; flex: 1; }
.page.active { display: block; }

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; }
.page-desc  { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ==============================
   통계 카드
   ============================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.bg-blue   { background: linear-gradient(135deg,#4F46E5,#6366F1); }
.bg-green  { background: linear-gradient(135deg,#059669,#10B981); }
.bg-purple { background: linear-gradient(135deg,#7C3AED,#A78BFA); }
.bg-orange { background: linear-gradient(135deg,#D97706,#FBBF24); }
.stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-name  { font-size: 16px !important; }

/* ==============================
   차트 그리드
   ============================== */
.chart-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.chart-card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.chart-title {
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.chart-title i { color: var(--primary); }

/* 최근 리뷰 */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.review-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 8px;
  border: 1px solid var(--border);
  transition: .2s;
}
.review-item:hover { background: var(--bg); }
.review-item-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.review-item-info { flex: 1; min-width: 0; }
.review-item-name { font-weight: 600; font-size: 13px; }
.review-item-meta { font-size: 11px; color: var(--text-2); }
.review-item-score { font-weight: 700; font-size: 15px; color: var(--primary); }

/* ==============================
   직원 그리드
   ============================== */
.employee-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.emp-card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer;
  transition: .2s;
}
.emp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.emp-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #fff;
  margin: 0 auto 12px;
}
.emp-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.emp-dept { font-size: 12px; color: var(--text-2); }
.emp-kpi  { margin-top: 12px; }
.emp-kpi-score { font-size: 20px; font-weight: 700; color: var(--primary); }
.emp-kpi-label { font-size: 11px; color: var(--text-2); }

/* ==============================
   폼 스타일
   ============================== */
.form-card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-label i { color: var(--primary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text);
  outline: none; transition: border-color .2s;
  background: #fff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
}
.form-textarea { resize: vertical; }

.section-title {
  font-size: 14px; font-weight: 700;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* 평가 슬라이더 */
.score-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px;
  margin-bottom: 20px;
}
.score-item { }
.score-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.score-label { font-size: 13px; font-weight: 600; }
.score-num {
  font-size: 18px; font-weight: 700; color: var(--primary);
  min-width: 28px; text-align: right;
}
.score-slider {
  width: 100%; height: 6px;
  -webkit-appearance: none;
  background: var(--border); border-radius: 3px;
  outline: none; cursor: pointer;
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 4px rgba(79,70,229,.4);
  cursor: pointer;
}
.score-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary); border: none;
  box-shadow: 0 2px 4px rgba(79,70,229,.4);
}

/* KPI 미리보기 */
.kpi-preview {
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  border-radius: 12px; padding: 20px;
  text-align: center; color: #fff; margin-bottom: 20px;
}
.kpi-preview-label { font-size: 12px; opacity: .8; margin-bottom: 4px; }
.kpi-preview-score { font-size: 42px; font-weight: 800; line-height: 1; }
.kpi-preview-grade { font-size: 15px; font-weight: 600; opacity: .9; margin-top: 4px; }

/* 본인평가 배너 */
.self-eval-banner {
  background: #EEF2FF; border: 1px solid #C7D2FE;
  color: var(--primary); border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.form-actions {
  display: flex; justify-content: flex-end; gap: 10px;
}
.btn-block { width: 100%; justify-content: center; }

/* ==============================
   버튼
   ============================== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: all .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-d); }
.btn-outline {
  background: #fff; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger {
  background: #FEF2F2; color: var(--danger);
  border: 2px solid #FCA5A5;
}
.btn-danger:hover { background: #FEE2E2; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ==============================
   필터 바
   ============================== */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.filter-select { width: auto; min-width: 140px; }

/* ==============================
   테이블
   ============================== */
.table-wrap {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.data-table {
  width: 100%; border-collapse: collapse;
}
.data-table th {
  background: #F8FAFC; padding: 12px 14px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  text-align: left; border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.empty-row { text-align: center; padding: 40px !important; color: var(--text-2); }

/* 등급 배지 */
.grade-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 800;
}
.grade-S { background: #FEF3C7; color: #92400E; }
.grade-A { background: #D1FAE5; color: #065F46; }
.grade-B { background: #DBEAFE; color: #1E40AF; }
.grade-C { background: #F1F5F9; color: #374151; }
.grade-D { background: #FEE2E2; color: #991B1B; }

/* 유형 배지 */
.type-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.type-상향평가 { background: #D1FAE5; color: #065F46; }
.type-하향평가 { background: #FEE2E2; color: #991B1B; }
.type-동료평가 { background: #DBEAFE; color: #1E40AF; }
.type-본인평가 { background: #EDE9FE; color: #5B21B6; }

/* ==============================
   KPI 리포트
   ============================== */
.report-header {
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  color: #fff; border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 20px;
}
.report-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  border: 3px solid rgba(255,255,255,.4);
}
.report-name  { font-size: 20px; font-weight: 800; }
.report-meta  { font-size: 13px; opacity: .8; }
.report-score { font-size: 36px; font-weight: 800; margin-left: auto; }
.report-grade { font-size: 14px; opacity: .9; text-align: right; }
.report-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-detail-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.sdc-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.sdc-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.sdc-bar { height: 100%; border-radius: 4px; transition: width .6s ease; }
.sdc-value { font-size: 20px; font-weight: 700; color: var(--primary); }

/* ==============================
   랭킹 포디엄
   ============================== */
.podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 12px; margin-bottom: 24px; padding: 20px;
}
.podium-item {
  text-align: center; width: 120px;
}
.podium-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  margin: 0 auto 8px;
}
.podium-name  { font-size: 13px; font-weight: 700; }
.podium-score { font-size: 12px; color: var(--text-2); }
.podium-stand {
  border-radius: 8px 8px 0 0;
  margin-top: 8px;
}
.podium-1 .podium-stand { height: 80px; background: linear-gradient(#F59E0B,#FBBF24); }
.podium-2 .podium-stand { height: 60px; background: linear-gradient(#9CA3AF,#D1D5DB); }
.podium-3 .podium-stand { height: 46px; background: linear-gradient(#B45309,#D97706); }
.podium-medal { font-size: 22px; margin-bottom: 6px; }

/* ==============================
   일반 직원 리뷰
   ============================== */
.user-review-wrap {
  max-width: 640px; margin: 0 auto; padding: 24px 0;
}
.user-step { }
.user-header {
  text-align: center; margin-bottom: 24px;
}
.user-header-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin: 0 auto 14px;
}
.user-header-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  margin: 0 auto 14px;
}
.user-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.user-header p  { font-size: 13px; color: var(--text-2); }

/* 제출 완료 */
.submit-complete {
  text-align: center; padding: 40px 0;
}
.complete-icon {
  font-size: 64px; color: var(--success);
  margin-bottom: 16px; animation: bounceIn .5s ease;
}
@keyframes bounceIn {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.submit-complete h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.submit-complete p  { color: var(--text-2); margin-bottom: 20px; }
.complete-score-box {
  display: inline-block;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  color: #fff; border-radius: 16px;
  padding: 20px 40px; margin-bottom: 24px;
}
.complete-score { font-size: 48px; font-weight: 800; }
.complete-grade { font-size: 16px; opacity: .9; }

/* ==============================
   모달
   ============================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
  animation: slideDown .25s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: .2s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body   { padding: 20px; }
.modal-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ==============================
   토스트
   ============================== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  min-width: 240px; max-width: 340px;
  box-shadow: var(--shadow-md);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.toast.success { background: #ECFDF5; color: #065F46; border-left: 4px solid #059669; }
.toast.error   { background: #FEF2F2; color: #991B1B; border-left: 4px solid #DC2626; }
.toast.warning { background: #FFFBEB; color: #92400E; border-left: 4px solid #D97706; }
.toast.info    { background: #EFF6FF; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* ==============================
   엑셀 업로드
   ============================== */
.excel-guide {
  background: #F0FDF4; border: 1px solid #BBF7D0;
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 16px;
}
.excel-guide-title {
  font-size: 13px; font-weight: 700; color: #065F46;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.excel-guide-desc { font-size: 12px; color: #374151; margin-bottom: 10px; }
.excel-col-list { display: flex; flex-wrap: wrap; gap: 6px; }
.excel-col {
  background: #fff; border: 1px solid #D1FAE5;
  border-radius: 6px; padding: 4px 10px;
  font-size: 12px; font-weight: 600; color: #065F46;
}
.excel-col.required { background: #DCFCE7; border-color: #86EFAC; }

.excel-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px; padding: 32px 20px;
  text-align: center; cursor: pointer;
  transition: all .2s; color: var(--text-2);
  margin-bottom: 14px;
}
.excel-drop-zone:hover, .excel-drop-zone.drag-over {
  border-color: var(--primary); background: var(--primary-l);
  color: var(--primary);
}
.excel-drop-zone i  { font-size: 32px; margin-bottom: 8px; display: block; }
.excel-drop-zone p  { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.excel-drop-zone span { font-size: 12px; opacity: .7; }

.excel-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.excel-preview-header span {
  font-size: 13px; font-weight: 700; color: var(--primary);
}

/* ==============================
   빈 상태
   ============================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px; color: var(--text-2); gap: 10px;
}
.empty-state i { font-size: 32px; opacity: .5; }

/* ==============================
   반응형
   ============================== */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .score-grid  { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-240px);
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page { padding: 16px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-card { padding: 30px 20px; }
}
