:root {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #212529;
  --primary-color: #4dabf7;
  --primary-hover: #339af0;
  --secondary-text: #868e96;
  --ball-bg: #e9ecef;
  --ball-text: #495057;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-color: #1a1b1e;
  --card-bg: #25262b;
  --text-color: #c1c2c5;
  --primary-color: #4dabf7;
  --primary-hover: #74c0fc;
  --secondary-text: #909296;
  --ball-bg: #373a40;
  --ball-text: #dee2e6;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

.container {
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

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

.theme-toggle button {
  background: none;
  border: 1px solid var(--ball-bg);
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--secondary-text);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle button:hover {
  background-color: var(--ball-bg);
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

p.subtitle {
  color: var(--secondary-text);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.numbers-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 2.5rem 0;
  min-height: 60px;
}

.ball {
  width: 50px;
  height: 50px;
  background-color: var(--ball-bg);
  color: var(--ball-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

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

.generate-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
}

.generate-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(77, 171, 247, 0.4);
}

.generate-btn:active {
  transform: translateY(0);
}

#status-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--secondary-text);
}
