body {
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Arial;
}

.calculator {
  background: #1e293b;
  padding: 20px;
  border-radius: 10px;
  width: 260px;
}

#display {
  width: 100%;
  height: 50px;
  font-size: 22px;
  margin-bottom: 10px;
  text-align: right;
  padding: 5px;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

button {
  padding: 12px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  background: #38bdf8;
  border-radius: 5px;
}

button:hover {
  background: #0ea5e9;
}

.clear {
  grid-column: span 4;
  background: red;
  color: white;
}