@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html,
body {
  width: 100vw;
  font-family: "Poppins", sans-serif;
  background: #0d1117;
  color: #f0f6fc;
}

button {
  font-family: inherit;
}

.calculator {
  width: 320px;
  padding: 1rem;
  margin: 8rem auto 3rem;
  border-radius: 12px;
  background: #161b22;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  animation: calculatorFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.display {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  padding: 1rem;
  min-height: 98px;
  border-radius: 12px;
  overflow: hidden;
}
.display .previous-operand {
  min-height: 22px;
  color: #8b949e;
  font-size: 0.9rem;
}
.display .current-operand {
  font-size: 1.8rem;
  font-weight: 600;
  color: #f0f6fc;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.buttons button {
  background: #161b22;
  color: #f0f6fc;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0.8rem;
  font-size: 1.1rem;
}
@media (hover: hover) and (pointer: fine) {
  .buttons button:hover {
    background: rgb(32.0178571429, 39.2946428571, 49.4821428571);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
  }
}
.buttons button:active {
  background: rgb(32.0178571429, 39.2946428571, 49.4821428571);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}
.buttons button.pressed {
  background: rgb(32.0178571429, 39.2946428571, 49.4821428571);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}
.buttons button[data-operation] {
  color: #f78166;
}
.buttons button[data-action=equals] {
  background: #238636;
  color: #f0f6fc;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  color: white;
  font-weight: 600;
  grid-row: span 2;
}
@media (hover: hover) and (pointer: fine) {
  .buttons button[data-action=equals]:hover {
    background: rgb(43.449704142, 166.350295858, 67.0366863905);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
  }
}
.buttons button[data-action=equals]:active {
  background: rgb(43.449704142, 166.350295858, 67.0366863905);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}
.buttons button[data-action=equals].pressed {
  background: rgb(43.449704142, 166.350295858, 67.0366863905);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(88, 166, 255, 0.4);
}
.buttons button[data-action=clear], .buttons button[data-action=delete] {
  color: #58a6ff;
}
.buttons button.zero {
  grid-column: span 2;
}

/* ✨ Entrance Animation */
@keyframes calculatorFadeIn {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
/* 📱 Mobile Style */
@media (max-width: 480px) {
  .calculator {
    width: 95%;
    margin: 3rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    animation: calculatorFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .display {
    padding: 1.5rem;
    min-height: 138px;
    border-radius: 12px;
    line-height: 1.6;
  }
  .display .previous-operand {
    font-size: 1.3rem;
    min-height: 34px;
  }
  .display .current-operand {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.3rem;
  }
  .buttons {
    gap: 0.9rem;
    grid-template-columns: repeat(4, 1fr);
  }
  .buttons button {
    padding: 1.3rem 1rem;
    font-size: 1.3rem;
    border-radius: 12px;
    min-height: 64px;
  }
  .buttons button[data-action=equals] {
    font-size: 1.4rem;
    border-radius: 14px;
    min-height: 140px;
  }
  .buttons button.zero {
    grid-column: span 2;
  }
}/*# sourceMappingURL=style.css.map */