/* ==========================================
   1. 기본 초기화 및 글로벌 스타일
   ========================================== */
* {
  box-sizing: border-box; /* 패딩과 테두리가 너비에 포함되도록 일괄 적용 */
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f9fa; /* 조금 더 트렌디하고 밝은 미색으로 변경 */
  color: #212529;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   2. 레이아웃 컨테이너
   ========================================== */
#app {
  max-width: 440px; /* 모바일 웹 스크린 기준 최적화 */
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 화면 중앙 정렬 효과 */
}

/* 뷰 전환 */
.view {
  display: none;
  animation: fadeIn 0.3s ease-in-out; /* 화면 전환 시 부드러운 페이드인 효과 */
}

.view.active {
  display: block;
}

/* ==========================================
   3. 폼 요소 (Input, Button)
   ========================================== */
input {
  width: 100%;
  padding: 14px;
  margin: 8px 0;
  font-size: 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #2d6cdf;
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15); /* 포커스 시 부드러운 링 효과 */
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600; /* 글자 두께를 키워 가독성 확보 */
  background: #2d6cdf;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background: #1b52b8;
}

button:active {
  transform: scale(0.98); /* 클릭 시 살짝 눌리는 인터랙션 추가 */
}

/* ==========================================
   4. 학습 및 테스트 컴포넌트
   ========================================== */
/* 단어 카드 (학습 뷰) */
#studyWordBox {
  max-height: 60vh; /* 카드 양이 많을 경우를 대비해 스크롤 영역 제한 */
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}
#studyWordBox::-webkit-scrollbar {
  width: 6px;
}

#studyWordBox::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.word-card {
  background: white;
  padding: 16px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.word-card b {
  color: #2d6cdf; /* 영어 단어에 포인트 컬러 적용 */
  font-size: 18px;
}

/* 객관식 보기 (테스트 뷰) */
.choice {
  background: white;
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.choice:hover {
  background: #eef4ff;
  border-color: #2d6cdf;
  color: #2d6cdf;
  transform: translateY(-1px); /* 호버 시 아주 살짝 떠오르는 효과 */
}

.choice:active {
  background: #e3edff;
  transform: translateY(0);
}

/* ==========================================
   5. 애니메이션 효과
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   맞춤형 복습 가이드 추천 박스 디자인
   ========================================== */
.review-recommendation {
  background-color: #f4f7fc;
  border-left: 4px solid #2d6cdf; /* 왼쪽 파란색 포인트 선 */
  padding: 18px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  text-align: left; /* 글자 왼쪽 정렬로 가독성 확보 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all .2s ease;
}

.review-recommendation h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2d6cdf;
  font-size: 16px;
  font-weight: bold;
}

.review-recommendation b {
  color: #333;
}

.review-recommendation .highlight-blue {
  color: #2d6cdf; 
  font-weight: bold;
}

.review-recommendation .highlight-red {
  color: #e04f5f; 
  font-weight: bold;
}

.review-recommendation .desc {
  margin: 8px 0 0 0; 
  font-size: 12px; 
  color: #666;
}

/* 결과창 내부 구분선 스타일 */
#resultBox hr {
  border: 0;
  height: 1px;
  background: #e5e5e5;
  margin: 20px 0;
}
/* 어드민 */
#studentCount{
  margin-top:10px;
  margin-bottom:10px;

  font-size:14px;
  color:#64748b;
  margin-left:6px;
  font-weight:600;
}
#studentList{
  display:flex;
  flex-direction:column;
  gap:10px;

  margin-top:20px;

  max-height:500px;
  overflow-y:auto;

  padding-right:6px;
}

#studentListView{
  position:relative;
}

.item{
  background:white;
  border-radius:14px;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,.05);

  display:flex;
  align-items:center;
}

.student-info{
  display:flex;
  align-items:center;
  gap:8px;
}

.student-number{
  font-size:17px;
  font-weight:700;
  color:#111827;
}

.student-name{
  font-size:15px;
  color:#6b7280;
}
#searchInput{
  position:sticky;
  top:0;

  width:100%;

  padding:10px 14px;

  border:1px solid #ddd;
  border-radius:10px;

  z-index:10;
  background:white;
}
#studentList::-webkit-scrollbar{
  width:8px;
}

#studentList::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:10px;
}

#studentList::-webkit-scrollbar-thumb:hover{
  background:#94a3b8;
}

.report {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  margin-top: 12px;
  margin-bottom: 20px;
}

.report-header {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-top: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed #f1f5f9;
}

.row span:first-child {
  color: #475569;
}

.row span:last-child {
  font-weight: 600;
  color: #0f172a;
}

.row.highlight {
  background: #eff6ff;
  padding: 10px 8px;
  border-radius: 8px;
  border-bottom: none;
  margin-top: 6px;
}

.row.highlight span:last-child {
  color: #2563eb;
}