:root {
  --bg-color: #f0f2f5;
  --container-bg: rgba(255, 255, 255, 0.8);
  --text-color: #1c1e21;
  --primary-btn: #007bff;
  --primary-btn-hover: #0056b3;
  --secondary-btn: #6c757d;
  --ball-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] {
  --bg-color: #121212;
  --container-bg: rgba(30, 30, 30, 0.8);
  --text-color: #e4e6eb;
  --primary-btn: #3a7afe;
  --primary-btn-hover: #5a94ff;
  --secondary-btn: #4e4e4e;
  --ball-shadow: rgba(255, 255, 255, 0.05);
}

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

.container {
  background: var(--container-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  width: 90%;
  max-width: 600px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.lotto-results {
  margin: 2rem 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.placeholder-text {
  opacity: 0.6;
  font-style: italic;
  margin-top: 100px;
}

.lotto-set {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 50px;
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 2px 2px 5px var(--ball-shadow);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Lotto ball colors based on number ranges */
.ball-1 { background: radial-gradient(circle at 30% 30%, #fbc02d, #f9a825); } /* 1-10 */
.ball-11 { background: radial-gradient(circle at 30% 30%, #2196f3, #1976d2); } /* 11-20 */
.ball-21 { background: radial-gradient(circle at 30% 30%, #f44336, #d32f2f); } /* 21-30 */
.ball-31 { background: radial-gradient(circle at 30% 30%, #9e9e9e, #616161); } /* 31-40 */
.ball-41 { background: radial-gradient(circle at 30% 30%, #4caf50, #388e3c); } /* 41-45 */

button {
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-btn);
  color: white;
  font-size: 1.1rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-btn);
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-secondary:hover {
  opacity: 0.9;
}
