/* Numpad Styles - Premium Glassmorphism Design */

.numpad-container {
  position: fixed;
  bottom: -400px; /* Hidden by default */
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.85); /* Matches --primary with transparency */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  padding: 16px 12px env(safe-area-inset-bottom, 16px);
  z-index: 2000;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: none;
  touch-action: manipulation;
}

.numpad-container.active {
  transform: translateY(-400px); /* Slide up */
}

.numpad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}

.numpad-title {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.numpad-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.numpad-key {
  aspect-ratio: 1.5 / 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
}

.numpad-key:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.numpad-key-special {
  background: rgba(233, 69, 96, 0.2); /* Tinted with --accent */
  color: #e94560;
  font-weight: 700;
}

.numpad-key-abc {
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.numpad-key-backspace {
  font-size: 1.2rem;
}

/* Adjustments for desktop or larger screens */
@media (min-width: 600px) {
  .numpad-container {
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    bottom: -400px;
    border-radius: 24px;
    margin-bottom: 20px;
  }
  
  .numpad-container.active {
    transform: translateX(-50%) translateY(-420px);
  }
}
