body {
  background-color: #f0f2f5;
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* 네비게이션 */
.navbar-main {
  background-color: #1e3a5f;
}
.btn-nav {
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 10px;
}
.btn-nav:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

/* 카드 공통 */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.25rem;
}

/* 로그인 카드 */
.login-card {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* 학생 카드 (대시보드) */
.student-card {
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.student-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
  border-color: #1e3a5f;
}

/* 아바타 */
.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #1e3a5f;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

/* 배지 카운트 */
.badge-count {
  font-size: 0.75rem;
  color: #6c757d;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 2px 8px;
}

/* 학생 헤더 */
.student-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 100%);
  color: white;
}
.student-header .card-body { color: white; }
.student-header h5, .student-header .text-muted {
  color: rgba(255,255,255,0.85) !important;
}

/* 탭 */
.nav-tabs .nav-link {
  color: #6c757d;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1.2rem;
}
.nav-tabs .nav-link.active {
  color: #1e3a5f;
  border-bottom: 2px solid #1e3a5f;
  background: none;
  font-weight: 600;
}
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

/* 포트폴리오 카드 */
.portfolio-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.09) !important;
}
.preview-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 활동 태그 */
.activity-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  background-color: #e8f0fe;
  color: #1e3a5f;
}

/* 파일 카드 */
.file-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: background 0.1s;
}
.file-card:hover { background-color: #f0f4ff; }

/* 정보 표시 */
.info-label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.info-value {
  font-size: 0.95rem;
  color: #1f2937;
}
.info-text {
  font-size: 0.92rem;
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.75;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  min-height: 2.5rem;
}

/* 상담일지 배지 */
.bg-primary-subtle { background-color: #dbeafe; }
.text-primary-emphasis { color: #1e40af; }

.table th { font-weight: 600; font-size: 0.85rem; }

/* 활동 종류 관리 태그 */
.activity-tag-item { display: inline-flex; align-items: center; }
.activity-tag-item .btn-link { font-size: 0.85rem; }

/* 학생 홈 */
.bg-warning-subtle { background-color: #fff3cd; }
.text-warning-emphasis { color: #664d03; }
.bg-info-subtle { background-color: #cff4fc; }
.text-info-emphasis { color: #055160; }

/* 모바일 최적화 */
@media (max-width: 768px) {
  /* 테이블 가로 스크롤 */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 카드 여백 축소 */
  .card-body { padding: 1rem !important; }

  /* 버튼 그룹 줄바꿈 */
  .d-flex.gap-2 { flex-wrap: wrap; }

  /* 성적표·생활기록부 입력 폼: 입력 불편 안내 */
  .desktop-only-notice {
    display: block !important;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #664d03;
  }

  /* 네비 메뉴 축소 */
  .navbar-main .nav-link { font-size: 0.85rem; padding: 0.3rem 0.5rem; }
}

@media (min-width: 769px) {
  .desktop-only-notice { display: none !important; }
}

/* GBP 점수 슬라이더 */
.score-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}
.score-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--track-color, #1e3a5f);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}
.score-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--track-color, #1e3a5f);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  cursor: pointer;
}
/* 진행 트랙 */
.score-track-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2px;
}
.score-track-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .15s ease;
}
/* 숫자 입력 */
.score-number {
  text-align: center;
  border-color: #cbd5e1;
}
.score-number:focus {
  box-shadow: 0 0 0 2px rgba(30,58,95,.2);
}
