* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  overflow: hidden;
}

/* Menu Hambúrguer */
.menu-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Dropdown */
.menu-dropdown {
  position: fixed;
  top: 80px;
  right: 30px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-btn {
  background: transparent;
  border: 2px solid #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  text-align: left;
  width: 100%;
  font-size: 14px;
}

.menu-btn:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.05);
}

.menu-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000;
}

.remote-btn {
  background: #333;
  border: 2px solid #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 14px;
}

.remote-btn:hover {
  background: #444;
  border-color: #444;
}

/* Separador do Menu */
.menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Seção de Presets no Menu */
.preset-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-menu-title {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  padding: 0 4px;
}

.preset-menu-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  width: 100%;
  font-size: 13px;
}

.preset-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.preset-menu-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.12);
}

.preset-menu-name {
  font-weight: 500;
}

.preset-menu-time {
  font-weight: 400;
  color: #aaa;
  font-size: 11px;
}

/* Container Principal */
.main-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.section {
  display: none;
  width: 100%;
  max-width: 1200px;
}

.section.active {
  display: block;
}

/* Display do Tempo - Layout da Imagem */
.time-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  width: 100%;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.time-number {
  font-size: 12rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 0.9;
  margin-bottom: 20px;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.time-label {
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Inter", sans-serif;
}

/* Temporizador */
.timer-container {
  text-align: center;
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  margin-bottom: 60px;
}

.timer-status-display {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
}

/* Remover estilos desnecessários do temporizador */
.timer-input-container,
.timer-controls {
  display: none;
}

.timer-input-container {
  margin-bottom: 40px;
}

#timerInput {
  background: transparent;
  border: 2px solid #333;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-family: "Inter", sans-serif;
  text-align: center;
  width: 200px;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

#timerInput:focus {
  outline: none;
  border-color: #666;
  background: rgba(255, 255, 255, 0.05);
}

.timer-input-container label {
  display: block;
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.control-btn {
  padding: 12px 24px;
  border: 2px solid #333;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
  background: transparent;
  color: #fff;
}

.control-btn:hover:not(:disabled) {
  border-color: #666;
  background: rgba(255, 255, 255, 0.05);
}

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

.start:hover:not(:disabled) {
  border-color: #4caf50;
  color: #4caf50;
}

.pause:hover:not(:disabled) {
  border-color: #f44336;
  color: #f44336;
}

.resume:hover:not(:disabled) {
  border-color: #ff9800;
  color: #ff9800;
}

.reset:hover:not(:disabled) {
  border-color: #9e9e9e;
  color: #9e9e9e;
}

.timer-status {
  font-size: 1.1rem;
  color: #888;
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 1200px) {
  .time-display,
  .timer-display {
    gap: 80px;
  }

  .time-number {
    font-size: 10rem;
  }
}

@media (max-width: 900px) {
  .time-display,
  .timer-display {
    gap: 60px;
  }

  .time-number {
    font-size: 8rem;
  }

  .time-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 0 20px;
  }

  .menu-toggle {
    top: 20px;
    right: 20px;
  }

  .menu-dropdown {
    right: 20px;
    top: 70px;
  }

  .time-display,
  .timer-display {
    flex-direction: column;
    gap: 40px;
  }

  .time-number {
    font-size: 6rem;
  }

  .timer-controls {
    flex-direction: column;
    align-items: center;
  }

  .control-btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .time-number {
    font-size: 4rem;
  }

  .time-label {
    font-size: 0.9rem;
  }

  #timerInput {
    width: 160px;
    font-size: 1.2rem;
  }
}

/* Efeito de flash quando temporizador termina */
.flash {
  display: none;
}

/* Efeito de flash branco quando temporizador termina */
.flash-white {
  display: none;
}

/* Efeito de piscar números vermelhos */
.flashing-red {
  animation: flashRed 0.5s infinite;
}

@keyframes flashRed {
  0% {
    color: #ffffff !important;
    text-shadow: none !important;
  }
  50% {
    color: #ff0000 !important;
    text-shadow: 0 0 20px #ff0000 !important;
  }
  100% {
    color: #ffffff !important;
    text-shadow: none !important;
  }
}
