:root {
  --bg-color: #f7f9fc;
  --container-bg: #ffffff;
  --text-color: #333333;
  --accent-color: #4a90e2;
  --button-hover: #357abd;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --border-color: #e1e4e8;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --container-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --accent-color: #64b5f6;
  --button-hover: #90caf9;
  --shadow: 0 4px 12px rgba(0,0,0,0.5);
  --border-color: #333333;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.theme-switch-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
}

#theme-toggle {
  padding: 8px 16px;
  cursor: pointer;
  background-color: var(--container-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.container {
  background-color: var(--container-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 90%;
  max-width: 450px;
  transition: background-color 0.3s ease;
}

h1 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.numbers-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  min-height: 60px;
  align-items: center;
}

.number-placeholder {
  color: #888;
  font-style: italic;
}

.number-ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#generate-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s;
  width: 100%;
}

#generate-btn:hover {
  background-color: var(--button-hover);
}

#generate-btn:active {
  transform: scale(0.98);
}

/* Lotto Ball Colors */
.n-yellow { background-color: #fbc02d; }
.n-blue   { background-color: #1976d2; }
.n-red    { background-color: #e53935; }
.n-gray   { background-color: #757575; }
.n-green  { background-color: #43a047; }
