/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap'); */


/* Wrapper Fix */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Calculator Box */
.calculator {
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 360px;

  /* Glass + Theme */
  background: rgba(20, 20, 35, 0.6);
  backdrop-filter: blur(12px);

  /* Gradient Border */
  border: 1px solid rgba(138, 43, 226, 0.5);

  /* Glow Effect */
  box-shadow: 
    0 0 25px rgba(138, 43, 226, 0.25),
    0 0 10px rgba(0, 150, 255, 0.2),
    inset 0 0 10px rgba(255,255,255,0.05);
}

/* Display Input */
#inputBox {
  width: 100%;
  border: none;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;

  background: rgba(255,255,255,0.05);
  color: #fff;

  font-size: 32px;
  text-align: right;

  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
}

#inputBox::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Button Grid Rows */
.calculator div {
  display: flex;
  justify-content: space-between;
}

/* Buttons */
.button {
  flex: 1;
  height: 55px;
  margin: 6px;
  border-radius: 12px;

  border: none;
  background: rgba(255,255,255,0.05);
  color: #fff;

  font-size: 18px;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;

  box-shadow: 
    -3px -3px 8px rgba(255,255,255,0.05),
    3px 3px 8px rgba(0,0,0,0.3);
}

/* Hover */
.button:hover {
  transform: scale(1.05);
  background: rgba(138, 43, 226, 0.2);
}

/* Active Click */
.button:active {
  transform: scale(0.95);
}

/* Operators */
.operator {
  color: #9b5cff;
  font-weight: 600;
}

/* Equal Button */
.equalBtn {
  background: linear-gradient(135deg, #8a2be2, #4facfe);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
}

/* Special Buttons */
.button.operator:nth-child(1), /* AC */
.button.operator:nth-child(2) { /* DEL */
  color: #ff6b6b;
}

/* Responsive Tweaks */
@media (max-width: 480px) {
  .calculator {
    padding: 15px;
    max-width: 100%;
  }

  #inputBox {
    font-size: 26px;
    padding: 16px;
  }

  .button {
    height: 50px;
    font-size: 16px;
    margin: 5px;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  #inputBox {
    font-size: 22px;
  }

  .button {
    height: 45px;
    font-size: 14px;
  }
}