@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c3ecf5, #f5c3e7);
  font-family: 'Poppins', sans-serif;
}

.calculator {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 360px;
  max-width: 95vw;
}

#display {
  width: 100%;
  height: 60px;
  font-size: 1.8rem;
  text-align: right;
  margin-bottom: 20px;
  padding: 10px 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  color: #333;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-switch {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.tab-switch button {
  flex: 1;
  padding: 10px 0;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.2s;
}

.tab-switch button:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tab {
  display: none;
}

.tab.active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

button {
  height: 60px;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  color: #000;
}

button:active {
  transform: scale(0.95);
}
#history-toggle {
    text-align: right;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    margin-bottom: 5px;
  }
  
  #full-history {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.9rem;
    max-height: 100px;
    overflow-y: auto;
    color: #333;
    display: none;
  }
  
  #full-history.show {
    display: block;
  }
  
  .hidden {
    display: none;
  }
  
  