/* 기본 타이머 모달 최종 통합 수정 - 모든 CSS를 덮어쓰는 최고 우선순위 */

/* CSS 변수 정의 - 최고 our priority - 10% 확대 적용 */
html {
  --basic-timer-width: 352px !important;   /* 320px * 1.1 */
  --basic-timer-height: 440px !important;  /* 400px * 1.1 */
  --basic-timer-padding: 15px !important;  /* 14px * 1.1 ≈ 15px */
  --timer-button-width: 127px !important;  /* 115px * 1.1 ≈ 127px */
  --timer-button-height: 40px !important;  /* 36px * 1.1 ≈ 40px */
  --timer-button-gap: 9px !important;      /* 8px * 1.1 ≈ 9px */
  --timer-display-size: 101px !important;  /* 92px * 1.1 ≈ 101px */
}

/* 최고 우선순위 모달 크기 고정 - 모든 가능한 선택자 사용 */
html body .standalone-timer-modal,
html body [data-timer-type="basic"],
html body [role="dialog"].standalone-timer-modal,
html body [data-radix-dialog-content].standalone-timer-modal {
  width: var(--basic-timer-width) !important;
  height: var(--basic-timer-height) !important;
  min-width: var(--basic-timer-width) !important;
  min-height: var(--basic-timer-height) !important;
  max-width: var(--basic-timer-width) !important;
  max-height: var(--basic-timer-height) !important;
  position: fixed !important;
  overflow: hidden !important;
  animation: none !important;
  transition: none !important;
}

/* 패딩 강제 적용 - 모든 선택자 */
html body .standalone-timer-modal > div:first-child,
html body [data-timer-type="basic"] > div:first-child {
  padding: var(--basic-timer-padding) !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* 타이머 숫자 크기 강제 적용 */
html body .standalone-timer-modal .text-\\[92px\\],
html body .standalone-timer-modal .text-\\[72px\\],
html body .standalone-timer-modal .text-\\[64px\\],
html body [data-timer-type="basic"] .text-\\[92px\\],
html body [data-timer-type="basic"] .text-\\[72px\\],
html body [data-timer-type="basic"] .text-\\[64px\\] {
  font-size: var(--timer-display-size) !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

/* 버튼 크기 통일 - 10% 확대 적용 */
html body .standalone-timer-modal .timer-action-button,
html body [data-timer-type="basic"] .timer-action-button {
  width: var(--timer-button-width) !important;
  height: var(--timer-button-height) !important;  /* 40px (36px * 1.1) */
  font-size: 14px !important;  /* 13px * 1.1 ≈ 14px */
}

/* 버튼 컨테이너 간격 */
html body .standalone-timer-modal .button-container,
html body [data-timer-type="basic"] .button-container {
  display: flex !important;
  justify-content: center !important;
  gap: var(--timer-button-gap) !important;
}

/* 하드코딩된 인라인 스타일 덮어쓰기 */
html body .standalone-timer-modal[style*="width"],
html body .standalone-timer-modal[style*="height"],
html body [data-timer-type="basic"][style*="width"],
html body [data-timer-type="basic"][style*="height"] {
  width: var(--basic-timer-width) !important;
  height: var(--basic-timer-height) !important;
}

/* 애니메이션 완전 차단 */
html body .standalone-timer-modal,
html body .standalone-timer-modal *,
html body [data-timer-type="basic"],
html body [data-timer-type="basic"] * {
  animation: none !important;
  transition: none !important;
}

/* Radix UI 오버라이드 */
html body .standalone-timer-modal[data-state="open"],
html body .standalone-timer-modal[data-state="closed"] {
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
}

/* 디버그: 모달 크기 확인용 */
@media (max-width: 1px) {
  /* 이 미디어 쿼리는 실행되지 않지만 개발자 도구에서 확인 가능 */
  .debug-modal-size {
    content: "320px x 400px x 92px";
  }
}