/* ==========================================================================
   2. BASE RESET & GLOBAL STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.35s ease, color 0.35s ease;
  cursor: var(--cursor-display);
  user-select: none;
  -webkit-user-select: none;
}

body.hide-cursor {
  --cursor-display: none;
}

.app-layout {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.main-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  padding: 1rem;
  z-index: 1;
}

/* ==========================================================================
   4. DISPLAY MODE KHUSUS (TAB BARU / FULLSCREEN VIEW)
   ========================================================================== */
body.display-mode .controls-wrapper,
body.display-mode .sidebar-panel,
body.display-mode .status-badge-container {
  display: none !important;
}

body.display-mode .main-stage {
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
}

body.display-mode .timer-section {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  justify-content: center;
  align-items: center;
}

body.display-mode .timer-display {
  font-size: min(35vw, 68vh);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.03em;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}

body.display-mode .timer-display.is-overtime {
  font-size: min(29vw, 66vh);
  color: var(--warning-red-bright) !important;
}

/* Display Hint (toast info saat tab fullscreen terbuka) */
.display-hint {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.display-mode .display-hint {
  display: block;
}
