/* Tema Claro */
.light-theme {
  --primary-color: #5e35b1;
  --secondary-color: #00796b;
  --accent-color: #ff5722;
  --dark-color: #f5f5f5;
  --light-color: #212121;
  --background-color: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-color: #333333;
  --border-color: rgba(0, 0, 0, 0.1);
}

/* Tema Escuro */
.dark-theme {
  --primary-color: #6e45e2;
  --secondary-color: #88d3ce;
  --accent-color: #ff7e5f;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --background-color: #121212;
  --card-bg: rgba(26, 26, 46, 0.8);
  --text-color: #f8f9fa;
  --border-color: rgba(255, 255, 255, 0.1);
}

/* Switch de Tema */
.theme-switcher {
  position: absolute;
  right: 20px;
  z-index: 100;
}

.theme-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.theme-btn i {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-btn .fa-moon {
  opacity: 1;
}

.theme-btn .fa-sun {
  opacity: 0;
  transform: rotate(90deg);
}

.light-theme .theme-btn .fa-moon {
  opacity: 0;
  transform: rotate(-90deg);
}

.light-theme .theme-btn .fa-sun {
  opacity: 1;
  transform: rotate(0deg);
}

.light-theme .stars,
.light-theme .twinkling {
  display: none;
}

.light-theme .control-panel,
.light-theme .results-panel {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.light-theme .number-btn {
  color: var(--light-color);
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .number-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.light-theme .result-number {
  color: white;
}

.light-theme .modal-content {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.light-theme .saved-item {
  background: rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--secondary-color);
}