/**
 * Unity 강의 프레젠테이션 UI 제어 스타일
 * 프레젠테이션 모드를 위한 UI 요소 숨기기 기능
 * @author 윤찬 (TwentyOz Inc.)
 * @version 1.0
 */

/* === Skip Link (접근성) === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus,
.skip-link:active {
  top: 6px;
}

/* === CSS 변수 === */
:root {
  --primary-color: #6366F1;
  --accent-color: #10B981;
  --secondary-color: #FBBF24;
  --text-primary: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] {
  --text-primary: #e2e8f0;
  --glass-bg: rgba(26, 32, 44, 0.8);
}

/* === 스크린 리더 전용 텍스트 === */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === 프레젠테이션 모드 스크롤 복원 === */
/* presentation-style.css의 overflow: hidden을 오버라이드하여 스크롤 복원 */
.presentation-mode {
  overflow: auto !important;
  /* 스크롤 허용 */
  -webkit-overflow-scrolling: touch !important;
  /* 모바일 스크롤 최적화 */
  overscroll-behavior: contain !important;
  /* 바운스 효과 제한 */
}

/* 프레젠테이션 모드에서도 부드러운 스크롤 유지 */
.presentation-mode html {
  scroll-behavior: smooth !important;
}

/* 프레젠테이션 모드에서 스크롤바 스타일 유지 */
.presentation-mode::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.presentation-mode::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.presentation-mode::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.presentation-mode::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.8);
}

/* 다크 테마에서의 스크롤바 */
[data-theme="dark"] .presentation-mode::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
}

[data-theme="dark"] .presentation-mode::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.8);
}

/* === 프레젠테이션 모드 Toggle 버튼 === */
.presentation-toggle-btn {
  position: fixed;
  top: 180px;
  /* 네비게이션 바(80px) + 여백(20px) 아래로 이동 */
  left: 20px;
  width: 50px;
  height: 50px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 100%),
    var(--glass-bg, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10060;
  /* 네비게이션(10020)보다 높게 설정 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary, #1a1a1a);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.15),
    0 16px 64px rgba(31, 38, 135, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  user-select: none;
}

.presentation-toggle-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, var(--primary-color, #6366F1) 0%, rgba(99, 102, 241, 0.8) 100%);
  color: white;
  border-color: var(--primary-color, #6366F1);
  box-shadow:
    0 12px 40px rgba(99, 102, 241, 0.3),
    0 20px 80px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.presentation-toggle-btn:focus {
  outline: none;
  background: linear-gradient(135deg, var(--accent-color, #10B981) 0%, rgba(16, 185, 129, 0.8) 100%);
  color: white;
  border-color: var(--accent-color, #10B981);
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.3),
    0 12px 40px rgba(16, 185, 129, 0.4);
}

.presentation-toggle-btn:active {
  transform: translateY(0) scale(1.02);
}

/* Toggle 버튼 애니메이션 */
.presentation-toggle-btn .toggle-icon {
  transition: transform 0.3s ease;
}

.presentation-toggle-btn.active .toggle-icon {
  transform: rotate(180deg) scale(1.1);
}

/* 프레젠테이션 모드 활성화시 아이콘 색상 변경 */
.presentation-toggle-btn.presentation-mode {
  background: linear-gradient(135deg, #ef4444 0%, rgba(239, 68, 68, 0.8) 100%);
  border-color: #ef4444;
  color: white;
}

.presentation-toggle-btn.presentation-mode:hover {
  background: linear-gradient(135deg, #dc2626 0%, rgba(220, 38, 38, 0.8) 100%);
  border-color: #dc2626;
}

/* === 프레젠테이션 UI 제어 패널 === */
.presentation-control-panel {
  position: fixed;
  top: 80px;
  left: 20px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.1) 100%),
    var(--glass-bg, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 20px;
  z-index: 1001;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.15),
    0 16px 64px rgba(31, 38, 135, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  min-width: 280px;
  max-width: 320px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateX(-100%) translateZ(0);
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity, visibility;
}

.presentation-control-panel.visible {
  transform: translateX(0) translateZ(0);
  opacity: 1;
  visibility: visible;
}

.presentation-control-panel:hover {
  transform: translateX(0) translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(31, 38, 135, 0.2),
    0 20px 80px rgba(31, 38, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 패널 헤더 */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  text-align: center;
}

.panel-icon {
  font-size: 18px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* 컨트롤 섹션 */
.control-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #2d3748);
  margin: 0;
}

.control-icon {
  font-size: 16px;
  display: inline-block;
}

/* UI 요소 토글 버튼들 */
.toggle-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary, #2d3748);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: left;
}

.toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s;
}

.toggle-btn:hover::before {
  left: 100%;
}

.toggle-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, var(--primary-color, #6366F1) 0%, rgba(99, 102, 241, 0.8) 100%);
  color: white;
  border-color: var(--primary-color, #6366F1);
  box-shadow:
    0 6px 20px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toggle-btn:active {
  transform: translateY(0) scale(1.0);
  box-shadow:
    0 2px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent-color, #10B981) 0%, rgba(16, 185, 129, 0.8) 100%);
  color: white;
  border-color: var(--accent-color, #10B981);
  box-shadow:
    0 4px 16px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.toggle-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 600;
}

.toggle-btn.active .toggle-status {
  background: rgba(255, 255, 255, 0.3);
}

/* 전체 프레젠테이션 모드 버튼 */
.presentation-mode-btn {
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #ef4444 0%, rgba(239, 68, 68, 0.8) 100%);
  color: white;
  border-color: #ef4444;
}

.presentation-mode-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, rgba(220, 38, 38, 0.8) 100%);
  border-color: #dc2626;
}

.presentation-mode-btn.active {
  background: linear-gradient(135deg, #16a34a 0%, rgba(22, 163, 74, 0.8) 100%);
  border-color: #16a34a;
}

/* 키보드 내비게이션 */
.toggle-btn:focus,
.presentation-toggle-btn:focus {
  outline: 3px solid var(--accent-color, #10B981);
  outline-offset: 2px;
}

/* === 프레젠테이션 모드에서 UI 요소 숨기기 === */
.presentation-mode .presentation-nav {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.presentation-mode .slide-indicator {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.presentation-mode .progress-container {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* 개별 UI 요소 숨기기 클래스들 */
.hide-navigation .presentation-nav {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.hide-indicators .slide-indicator {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.hide-progress .progress-container {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* === 다크 테마 최적화 === */
[data-theme="dark"] .presentation-toggle-btn {
  background:
    linear-gradient(135deg,
      rgba(26, 32, 44, 0.9) 0%,
      rgba(26, 32, 44, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .presentation-control-panel {
  background:
    linear-gradient(135deg,
      rgba(26, 32, 44, 0.9) 0%,
      rgba(26, 32, 44, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .panel-title {
  color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .control-label {
  color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .toggle-btn {
  background:
    linear-gradient(135deg,
      rgba(45, 55, 72, 0.9) 0%,
      rgba(45, 55, 72, 0.7) 100%);
  color: var(--text-primary, #e2e8f0);
  border-color: rgba(255, 255, 255, 0.15);
}

/* === 모바일 메뉴에 프레젠테이션 토글 추가 === */
.mobile-presentation-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 8px 0;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-presentation-toggle:hover {
  background:
    linear-gradient(135deg,
      var(--primary-color, #6366F1) 0%,
      rgba(99, 102, 241, 0.8) 100%);
  color: white;
  border-color: var(--primary-color, #6366F1);
}

.mobile-presentation-toggle.active {
  background:
    linear-gradient(135deg,
      #ef4444 0%,
      rgba(239, 68, 68, 0.8) 100%);
  color: white;
  border-color: #ef4444;
}

.mobile-toggle-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.mobile-toggle-icon {
  font-size: 18px;
}

.mobile-toggle-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

/* === 반응형 디자인 === */
@media (max-width: 768px) {
  .presentation-toggle-btn {
    top: 90px;
    /* 모바일 네비게이션(70px) + 여백(20px) 아래로 이동 */
    left: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .presentation-control-panel {
    top: 145px;
    /* 토글 버튼(90px + 45px) 아래로 이동 */
    left: 15px;
    min-width: 260px;
    max-width: 280px;
    padding: 16px;
  }

  .panel-title {
    font-size: 15px;
  }

  .control-label {
    font-size: 13px;
  }

  .toggle-btn {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 44px;
    /* 터치 친화적 */
  }
}

@media (max-width: 480px) {
  .presentation-toggle-btn {
    top: 85px;
    /* 작은 모바일에서도 네비게이션 아래로 이동 */
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .presentation-control-panel {
    top: 135px;
    /* 토글 버튼(85px + 40px) 아래로 이동 */
    left: 10px;
    min-width: 240px;
    max-width: 260px;
    padding: 14px;
  }

  .panel-title {
    font-size: 14px;
  }

  .panel-icon {
    font-size: 16px;
  }

  .control-section {
    gap: 12px;
  }

  .toggle-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (min-width: 1200px) {
  .presentation-toggle-btn {
    top: 110px;
    left: 30px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .presentation-control-panel {
    top: 95px;
    left: 30px;
    min-width: 320px;
    max-width: 360px;
    padding: 24px;
  }

  .panel-title {
    font-size: 17px;
  }

  .control-label {
    font-size: 15px;
  }

  .toggle-btn {
    padding: 14px 18px;
    font-size: 15px;
  }
}

/* === 학습 접근성 기능 스타일 === */

/* 접근성 섹션 구분 */
.accessibility-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 20px;
}

/* 폰트 크기 조절 컨트롤 */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.font-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 40px;
  justify-content: center;
}

.font-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.font-btn:active {
  transform: translateY(0);
}

.font-btn.reset-btn {
  background: rgba(255, 107, 89, 0.2);
  border-color: rgba(255, 107, 89, 0.3);
}

.font-btn.reset-btn:hover {
  background: rgba(255, 107, 89, 0.3);
  border-color: rgba(255, 107, 89, 0.4);
}

.font-size-display {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color);
  min-width: 40px;
  text-align: center;
}

/* 폰트 패밀리 선택 */
.font-family-controls {
  margin-bottom: 12px;
}

.font-family-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-family-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.font-family-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* 줄 간격 조절 */
.line-height-controls {
  margin-bottom: 16px;
}

.control-sublabel {
  display: block;
  font-size: 11px;
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 6px;
  font-weight: 500;
}

.line-height-buttons {
  display: flex;
  gap: 4px;
}

.line-height-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.line-height-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.line-height-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* 시각 설정 컨트롤 */
.visual-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 읽기 모드 스타일 */
body.reading-mode {
  background-color: var(--accessibility-bg-color, #f7f4f0) !important;
  color: var(--accessibility-text-color, #2c2823) !important;
}

body.reading-mode .slide {
  background-color: var(--accessibility-bg-color, #f7f4f0) !important;
  color: var(--accessibility-text-color, #2c2823) !important;
}

body.reading-mode .slide h1,
body.reading-mode .slide h2,
body.reading-mode .slide h3,
body.reading-mode .slide h4,
body.reading-mode .slide h5,
body.reading-mode .slide h6 {
  color: var(--accessibility-text-color, #2c2823) !important;
}

body.reading-mode .slide p,
body.reading-mode .slide li,
body.reading-mode .slide span,
body.reading-mode .slide div {
  color: var(--accessibility-text-color, #2c2823) !important;
}

/* 고대비 모드 스타일 */
body.high-contrast-mode {
  background-color: var(--accessibility-bg-color, #000000) !important;
  color: var(--accessibility-text-color, #ffffff) !important;
}

body.high-contrast-mode .slide {
  background-color: var(--accessibility-bg-color, #000000) !important;
  color: var(--accessibility-text-color, #ffffff) !important;
}

body.high-contrast-mode .slide h1,
body.high-contrast-mode .slide h2,
body.high-contrast-mode .slide h3,
body.high-contrast-mode .slide h4,
body.high-contrast-mode .slide h5,
body.high-contrast-mode .slide h6 {
  color: var(--accessibility-text-color, #ffffff) !important;
  text-shadow: none !important;
}

body.high-contrast-mode .slide p,
body.high-contrast-mode .slide li,
body.high-contrast-mode .slide span,
body.high-contrast-mode .slide div {
  color: var(--accessibility-text-color, #ffffff) !important;
}

body.high-contrast-mode .slide img {
  filter: contrast(1.2) brightness(1.1);
}

body.high-contrast-mode .slide code {
  background-color: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #666666;
}

/* 접근성 폰트 적용 */
body[data-accessibility-font="serif"] {
  font-family: var(--accessibility-font-family) !important;
}

body[data-accessibility-font="monospace"] {
  font-family: var(--accessibility-font-family) !important;
}

body[data-accessibility-font="dyslexia"] {
  font-family: var(--accessibility-font-family) !important;
}

/* 접근성 폰트 크기 적용 */
body[data-accessibility-font-size] {
  font-size: var(--accessibility-font-size) !important;
}

/* 접근성 줄 간격 적용 */
body[data-accessibility-line-height] {
  line-height: var(--accessibility-line-height) !important;
}

body[data-accessibility-line-height] .slide p,
body[data-accessibility-line-height] .slide li,
body[data-accessibility-line-height] .slide div {
  line-height: var(--accessibility-line-height) !important;
}

/* 모바일 반응형 - 접근성 컨트롤 */
@media (max-width: 768px) {
  .font-size-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .font-size-controls>div {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }

  .font-btn {
    flex: 1;
    min-width: auto;
  }

  .line-height-buttons {
    flex-direction: column;
  }

  .line-height-btn {
    flex: none;
  }

  .visual-controls .toggle-btn {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .accessibility-section {
    padding-top: 16px;
    margin-top: 16px;
  }

  .font-size-controls {
    gap: 6px;
  }

  .font-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .font-size-display {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* 다크 테마 지원 */
[data-theme="dark"] .font-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .font-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .font-size-display {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .font-family-select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .font-family-select:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .line-height-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .line-height-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}