/* RESET */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* OUTER SHELL (CREATES LIFT) */
.calculator-shell {
  background: #000;
  padding: 20px;
}

/* CALCULATOR BODY */
.calculator {
  width: 380px;
  background: #0c0c0c;
  border-radius: 6px;

  /* subtle lift */
  box-shadow:
    0 8px 24px rgba(0,0,0,0.8),
    0 2px 0 rgba(255,255,255,0.03);

  /* micro texture */
  background-image:
    linear-gradient(
      rgba(255,255,255,0.015),
      rgba(255,255,255,0.015)
    );
}

/* DISPLAY */
.display {
  padding: 18px 16px 12px;
  color: #fff;
}

#expression {
  font-size: 13px;
  color: #9a9a9a;
  height: 16px;
  text-align: right;
}

#result {
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  margin-top: 6px;
  text-align: right;
  word-break: break-all;
}

/* BUTTON GRID */
.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  background: #0f0f0f;
  border-radius: 0 0 6px 6px;
}

/* BUTTON BASE */
button {
  height: 60px;
  background: #1f1f1f;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  outline: none;

  /* subtle depth */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.65);
}

/* INTERACTION */
button:hover {
  background: #2a2a2a;
}

button:active {
  background: #3a3a3a;
}

/* EQUALS */
.equals {
  background: #2a2a2a;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.75);
}
