body {
  font-family: sans-serif;
  background: linear-gradient(to bottom right, #eef2ff, #e9d5ff);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.error {
  color: red;
  font-size: 0.9rem;
}

.roulette-display {
  font-size: 4rem;
  background: #e0e7ff;
  color: #3730a3;
  padding: 1rem;
  border-radius: 1rem;
  margin: 1rem 0;
}

.progress-container {
  text-align: left;
  margin-bottom: 1rem;
}

.progress-bar {
  background: #e5e7eb;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  background: #4f46e5;
  height: 10px;
  width: 0%;
  transition: width 0.3s ease;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

button {
  flex: 1 1 45%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

#generateBtn { background-color: #4f46e5; }
#autoBtn { background-color: #10b981; }
#resetBtn { background-color: #6b7280; }
#exportBtn { background-color: #f59e0b; }

.auto-indicator {
  background: #d1fae5;
  color: #065f46;
  padding: 0.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pulse {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.history-list div {
  background: #4f46e5;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}