body {
  font-family: Arial;
  text-align: center;
  background: #121212;
  color: #eaeaea;
  padding: 10px;
}

h2 {
  margin-bottom: 10px;
  color: #ffffff;
}

/* FIELDS */
.fields {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.field {
  width: 90px;
  height: 70px;
  border-radius: 10px;
  border: 2px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #1e1e1e;
}

.field.active {
  border-color: #4da3ff;
}

.value {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
}

.label {
  font-size: 12px;
  color: #aaa;
}

/* KEYPAD */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 10px auto;
}

.keypad button {
  height: 65px;
  font-size: 22px;
  border-radius: 10px;
  border: none;
  background: #2a2a2a;
  color: white;
}

.keypad button:active {
  background: #3a3a3a;
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 10px;
  max-width: 300px;
  margin: 10px auto;
}

.actions button {
  flex: 1;
  height: 60px;
  font-size: 20px;
  border-radius: 10px;
  border: none;
  color: white;
}

.add { background: #2e7d32; }
.sub { background: #c62828; }

/* CONTROLS */
.controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 10px auto;
}

.controls button {
  height: 60px;
  border-radius: 10px;
  border: none;
  font-size: 18px;
}

.total {
  grid-column: span 2;
  background: #444;
  color: white;
}

/* OUTPUT */
#entries, #history {
  max-width: 320px;
  margin: 10px auto;
  text-align: left;
  color: #ddd;
}

.entry, .history-item {
  padding: 6px;
  border-bottom: 1px solid #333;
}

#result {
  font-size: 30px;
  margin-top: 10px;
  font-weight: bold;
  color: #fff;
}