.meditation-timer {
  max-width: 1180px;
  margin: 20px auto;
  padding: 20px;
  background: #f5f5f0;
  border: 2px solid #333;
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: #222;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.15);
  position: relative;
}

.dark-mode .meditation-timer {
  background: #1a1a1a;
  border-color: #555;
  color: #e0e0e0;
}

/* 헤더 */
.timer-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 3px double #333;
  position: relative;
}

.dark-mode .timer-header {
  border-bottom-color: #555;
}

.timer-header h2 {
  margin: 0 0 6px 0;
  font-size: 27px;
  font-weight: 700;
  color: #6a4c93;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.dark-mode .timer-header h2 {
  color: #9d7bd8;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.dark-mode .subtitle {
  color: #999;
}

.btn-fullscreen {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #6a4c93;
  border: 1px solid #333;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
  font-weight: 700;
}

.dark-mode .btn-fullscreen {
  background: #9d7bd8;
  border-color: #555;
  color: #1a1a1a;
}

.btn-fullscreen:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.btn-fullscreen:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* 프리셋 */
.preset-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-preset,
.btn-custom {
  padding: 7px 13px;
  background: #fff;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  color: #222;
}

.dark-mode .btn-preset,
.dark-mode .btn-custom {
  background: #2a2a2a;
  border-color: #555;
  color: #e0e0e0;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.btn-preset:hover,
.btn-custom:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.dark-mode .btn-preset:hover,
.dark-mode .btn-custom:hover {
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.btn-preset:active,
.btn-custom:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-preset.active {
  background: #6a4c93;
  color: #fff;
}

.dark-mode .btn-preset.active {
  background: #9d7bd8;
  color: #1a1a1a;
}

/* 메인 */
.timer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* 타이머 디스플레이 */
.timer-display-section {
  background: #fff;
  border: 1px solid #333;
  padding: 15px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.dark-mode .timer-display-section {
  background: #2a2a2a;
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.timer-display {
  text-align: center;
  padding: 20px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid #333;
  margin-bottom: 12px;
}

.dark-mode .timer-display {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-color: #555;
}

.time-digits {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 6px;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  font-family: 'Courier New', monospace;
}

.separator {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

.timer-label {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 진행률 */
.progress-container {
  position: relative;
  height: 26px;
  background: #f0f0f0;
  border: 1px solid #333;
  margin-bottom: 12px;
  overflow: hidden;
}

.dark-mode .progress-container {
  background: #1a1a1a;
  border-color: #555;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.dark-mode .progress-bar {
  background: linear-gradient(90deg, #4a5568 0%, #2d3748 100%);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.dark-mode .progress-text {
  color: #e0e0e0;
}

/* 컨트롤 */
.control-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-control {
  flex: 1;
  padding: 11px 12px;
  border: 1px solid #333;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dark-mode .btn-control {
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.btn-start {
  background: #27ae60;
  color: #fff;
}

.dark-mode .btn-start {
  background: #2ecc71;
}

.btn-pause {
  background: #f39c12;
  color: #fff;
}

.dark-mode .btn-pause {
  background: #f1c40f;
  color: #1a1a1a;
}

.btn-reset {
  background: #e74c3c;
  color: #fff;
}

.dark-mode .btn-reset {
  background: #c0392b;
}

.btn-control:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-control:not(:disabled):hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.dark-mode .btn-control:not(:disabled):hover {
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.btn-control:not(:disabled):active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-icon {
  font-size: 15px;
}

.btn-text {
  font-size: 13px;
}

/* 종료 시간 */
.end-time {
  text-align: center;
  padding: 8px;
  background: #fffacd;
  border: 1px dashed #333;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.dark-mode .end-time {
  background: #3a3a1a;
  border-color: #555;
  color: #e0e0e0;
}

#endTimeText {
  color: #6a4c93;
  font-weight: 700;
}

.dark-mode #endTimeText {
  color: #9d7bd8;
}

/* 키보드 힌트 */
.keyboard-hints {
  display: flex;
  justify-content: space-around;
  font-size: 10px;
  color: #999;
  padding: 6px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.dark-mode .keyboard-hints {
  background: #1a1a1a;
  border-color: #444;
  color: #666;
}

.keyboard-hints span {
  white-space: nowrap;
}

/* 설정 */
.settings-section {
  background: #fff;
  border: 1px solid #333;
  padding: 15px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.dark-mode .settings-section {
  background: #2a2a2a;
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.section-title {
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
  font-size: 16px;
  font-weight: 700;
  color: #6a4c93;
}

.dark-mode .section-title {
  border-bottom-color: #555;
  color: #9d7bd8;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 10px;
  margin-bottom: 12px;
  align-items: end;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.dark-mode .input-group label {
  color: #999;
}

.time-input,
.select-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  box-sizing: border-box;
}

.dark-mode .time-input,
.dark-mode .select-input {
  background: #1a1a1a;
  border-color: #555;
  color: #e0e0e0;
}

.time-input:focus,
.select-input:focus {
  outline: none;
  background: #fffacd;
  border-color: #6a4c93;
}

.dark-mode .time-input:focus,
.dark-mode .select-input:focus {
  background: #3a3a1a;
  border-color: #9d7bd8;
}

.btn-play-inline {
  padding: 8px 14px;
  background: #6a4c93;
  border: 1px solid #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
  white-space: nowrap;
}

.dark-mode .btn-play-inline {
  background: #9d7bd8;
  border-color: #555;
  color: #1a1a1a;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

.btn-play-inline:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.dark-mode .btn-play-inline:hover {
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.btn-play-inline:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.settings-group {
  margin-bottom: 12px;
}

.settings-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.1s;
}

.dark-mode .settings-label {
  background: #1a1a1a;
  border-color: #444;
}

.settings-label:hover {
  background: #fff;
  border-color: #999;
}

.dark-mode .settings-label:hover {
  background: #2a2a2a;
  border-color: #666;
}

.checkbox-input {
  margin: 0;
  accent-color: #6a4c93;
}

.dark-mode .checkbox-input {
  accent-color: #9d7bd8;
}

.interval-settings,
.breathing-settings {
  margin-top: 8px;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.dark-mode .interval-settings,
.dark-mode .breathing-settings {
  background: #1a1a1a;
  border-color: #444;
}

.inline-input {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.sub-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.dark-mode .sub-label {
  color: #999;
}

.time-input-small {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #333;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  box-sizing: border-box;
}

.dark-mode .time-input-small {
  background: #1a1a1a;
  border-color: #555;
  color: #e0e0e0;
}

.time-input-small:focus {
  outline: none;
  background: #fffacd;
  border-color: #6a4c93;
}

.dark-mode .time-input-small:focus {
  background: #3a3a1a;
  border-color: #9d7bd8;
}

.help-text {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #e74c3c;
  font-weight: 600;
  min-height: 13px;
}

.dark-mode .help-text {
  color: #ff6b6b;
}

.volume-control {
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.dark-mode .volume-control {
  background: #1a1a1a;
  border-color: #444;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider {
  flex: 1;
  height: 6px;
  accent-color: #6a4c93;
}

.dark-mode .slider {
  accent-color: #9d7bd8;
}

.volume-value {
  min-width: 40px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #6a4c93;
}

.dark-mode .volume-value {
  color: #9d7bd8;
}

.btn-save-preset {
  width: 100%;
  padding: 9px;
  background: #6a4c93;
  border: 1px solid #333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  transition: all 0.1s;
}

.dark-mode .btn-save-preset {
  background: #9d7bd8;
  border-color: #555;
  color: #1a1a1a;
}

.btn-save-preset:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.btn-save-preset:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* 호흡 가이드 */
.breathing-guide {
  margin-bottom: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  text-align: center;
}

.dark-mode .breathing-guide {
  background: #2a2a2a;
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.breathing-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dark-mode .breathing-circle {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-color: #555;
}

.breathing-circle::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.breathing-circle.inhale {
  transform: scale(1.4);
}

.breathing-circle.hold {
  transform: scale(1.4);
}

.breathing-circle.exhale {
  transform: scale(0.7);
}

.breathing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.breathing-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  margin-bottom: 4px;
}

.breathing-count {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  font-family: 'Courier New', monospace;
}

.breathing-instruction {
  font-size: 15px;
  font-weight: 600;
  color: #6a4c93;
}

.dark-mode .breathing-instruction {
  color: #9d7bd8;
}

/* 통계 */
.stats-section {
  padding: 15px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

.dark-mode .stats-section {
  background: #2a2a2a;
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.dark-mode .stats-header {
  border-bottom-color: #555;
}

.stats-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #6a4c93;
}

.dark-mode .stats-title {
  color: #9d7bd8;
}

.stats-tabs {
  display: flex;
  gap: 6px;
}

.stats-tab {
  padding: 5px 11px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
}

.dark-mode .stats-tab {
  background: #1a1a1a;
  border-color: #444;
  color: #e0e0e0;
}

.stats-tab:hover {
  background: #fff;
}

.dark-mode .stats-tab:hover {
  background: #2a2a2a;
}

.stats-tab.active {
  background: #6a4c93;
  color: #fff;
  border-color: #6a4c93;
}

.dark-mode .stats-tab.active {
  background: #9d7bd8;
  color: #1a1a1a;
  border-color: #9d7bd8;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  padding: 13px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  border: 1px solid #333;
  text-align: center;
}

.dark-mode .stat-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-color: #555;
}

.stat-icon {
  font-size: 30px;
  margin-bottom: 7px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #6a4c93;
  margin-bottom: 5px;
}

.dark-mode .stat-value {
  color: #9d7bd8;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

.dark-mode .stat-label {
  color: #999;
}

/* 히스토리 */
.history-section {
  padding: 15px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  margin-bottom: 12px;
}

.dark-mode .history-section {
  background: #2a2a2a;
  border-color: #555;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}

.history-title {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 700;
  color: #6a4c93;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.dark-mode .history-title {
  color: #9d7bd8;
  border-bottom-color: #555;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-empty {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 13px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  margin-bottom: 6px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  font-size: 13px;
}

.dark-mode .history-item {
  background: #1a1a1a;
  border-color: #444;
}

.history-item.completed {
  border-color: #27ae60;
}

.dark-mode .history-item.completed {
  border-color: #2ecc71;
}

.history-time {
  color: #666;
  font-weight: 600;
}

.dark-mode .history-time {
  color: #999;
}

.history-duration {
  font-weight: 700;
  color: #6a4c93;
}

.dark-mode .history-duration {
  color: #9d7bd8;
}

.history-status {
  font-size: 15px;
}

/* 전체화면 모드 */
.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dark-mode .fullscreen-mode {
  background: #0a0a0a;
}

.fullscreen-timer {
  text-align: center;
  margin-bottom: 50px;
}

.fullscreen-digits {
  font-size: 180px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 20px;
  line-height: 1;
  text-shadow: 6px 6px 0 rgba(0,0,0,0.5);
  font-family: 'Courier New', monospace;
  margin-bottom: 30px;
}

.fullscreen-separator {
  animation: blink 1s infinite;
}

.fullscreen-label {
  font-size: 28px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.fullscreen-progress {
  width: 600px;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  margin: 0 auto;
  overflow: hidden;
}

.fullscreen-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.fullscreen-controls {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.btn-fullscreen-control {
  padding: 20px 50px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-fullscreen-control:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-pause-full {
  background: rgba(243, 156, 18, 0.3);
  border-color: rgba(243, 156, 18, 0.6);
}

.btn-pause-full:hover {
  background: rgba(243, 156, 18, 0.5);
}

.btn-reset-full {
  background: rgba(231, 76, 60, 0.3);
  border-color: rgba(231, 76, 60, 0.6);
}

.btn-reset-full:hover {
  background: rgba(231, 76, 60, 0.5);
}

.fullscreen-hint {
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  font-weight: 600;
}

/* 모달 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border: 2px solid #333;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.dark-mode .modal-content {
  background: #2a2a2a;
  border-color: #555;
}

.modal-small {
  max-width: 420px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #333;
}

.dark-mode .modal-header {
  border-bottom-color: #555;
}

.modal-header h3 {
  margin: 0;
  font-size: 19px;
  color: #6a4c93;
}

.dark-mode .modal-header h3 {
  color: #9d7bd8;
}

.btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  background: #e74c3c;
  border: 1px solid #333;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.dark-mode .btn-close {
  border-color: #555;
}

.btn-close:hover {
  background: #c0392b;
}

.modal-body {
  padding: 16px;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px;
  background: #f9f9f9;
  border: 1px solid #ddd;
}

.dark-mode .preset-item {
  background: #1a1a1a;
  border-color: #444;
}

.preset-info {
  flex: 1;
}

.preset-name {
  font-weight: 700;
  color: #6a4c93;
  margin-bottom: 5px;
  font-size: 14px;
}

.dark-mode .preset-name {
  color: #9d7bd8;
}

.preset-details {
  font-size: 12px;
  color: #666;
}

.dark-mode .preset-details {
  color: #999;
}

.preset-actions {
  display: flex;
  gap: 7px;
}

.btn-preset-action {
  padding: 7px 11px;
  background: #6a4c93;
  border: 1px solid #333;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dark-mode .btn-preset-action {
  background: #9d7bd8;
  border-color: #555;
  color: #1a1a1a;
}

.btn-preset-action.delete {
  background: #e74c3c;
}

.dark-mode .btn-preset-action.delete {
  background: #c0392b;
  color: #fff;
}

.btn-preset-action:hover {
  opacity: 0.8;
}

.restore-info {
  padding: 11px;
  background: #fffacd;
  border: 1px solid #333;
  margin: 11px 0;
  font-size: 14px;
  font-weight: 600;
}

.dark-mode .restore-info {
  background: #3a3a1a;
  border-color: #555;
}

.modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 16px;
}

.btn-modal {
  flex: 1;
  padding: 11px;
  border: 1px solid #333;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.dark-mode .btn-modal {
  border-color: #555;
}

.btn-primary {
  background: #27ae60;
  color: #fff;
}

.dark-mode .btn-primary {
  background: #2ecc71;
}

.btn-secondary {
  background: #95a5a6;
  color: #fff;
}

.dark-mode .btn-secondary {
  background: #7f8c8d;
}

.btn-modal:hover {
  opacity: 0.9;
}

/* 푸터 */
.footer-note {
  padding: 11px;
  background: #f0f0f0;
  border: 1px dashed #999;
  text-align: center;
}

.dark-mode .footer-note {
  background: #1a1a1a;
  border-color: #555;
}

.footer-note p {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.dark-mode .footer-note p {
  color: #999;
}

/* 반응형 */
@media (max-width: 768px) {
  .timer-main {
    grid-template-columns: 1fr;
  }
  
  .settings-row {
    grid-template-columns: 1fr;
  }
  
  .btn-play-inline {
    width: 100%;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .preset-buttons {
    flex-direction: column;
  }
  
  .btn-preset,
  .btn-custom {
    width: 100%;
  }
  
  .time-digits {
    font-size: 52px;
    letter-spacing: 4px;
  }
  
  .keyboard-hints {
    font-size: 9px;
    flex-direction: column;
    gap: 3px;
  }
  
  .fullscreen-digits {
    font-size: 100px;
    letter-spacing: 10px;
  }
  
  .fullscreen-progress {
    width: 90%;
  }
  
  .fullscreen-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-fullscreen-control {
    padding: 15px 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .meditation-timer {
    padding: 15px;
  }
  
  .fullscreen-digits {
    font-size: 70px;
    letter-spacing: 6px;
  }
  
  .fullscreen-label {
    font-size: 20px;
  }
}