:root {
  --bg1: #e0e7ff;
  --bg2: #d8b4fe;
  --accent: #7c3aed;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
}

.card {
  width: 360px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  color: #1e1b4b;
}

.status {
  min-height: 36px;
  margin: 12px 0;
  font-weight: 600;
  color: var(--accent);
}

input[type=number] {
  padding: 10px;
  width: 60%;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  transition: 0.3s;
}

input[type=number]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  margin-left: 8px;
  transition: 0.3s;
}

button:hover {
  background: #6d28d9;
}

.reset-btn {
  background: #ff7675;
}

.info {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

.history {
  margin-top: 12px;
  text-align: left;
  max-height: 140px;
  overflow: auto;
}

.history li {
  background: #f3e8ff;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid var(--accent);
  color: #4c1d95;
}