:root {
  /* Light Theme */
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --accent-color: #3b82f6;
  --secondary-color: #64748b;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.8);
  
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --accent-color: #60a5fa;
  --secondary-color: #94a3b8;
  --card-bg: #1e293b;
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --header-bg: rgba(15, 23, 42, 0.8);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 1000;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

[data-theme="dark"] header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: transform 0.2s, box-shadow 0.2s, background-color var(--transition-speed);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

h1, h2 {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: scale(0.98);
}

#theme-toggle {
  background: none;
  border: 1px solid var(--secondary-color);
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  background-color: rgba(0,0,0,0.05);
}

[data-theme="dark"] #theme-toggle:hover {
  background-color: rgba(255,255,255,0.05);
}

.toto-display {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.number-ball {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

