/* Custom Base & Animations */
@layer base {
  body {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Glassmorphism Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(233, 213, 255, 0.6);
}

/* Smooth Tab Transitions */
.tab-content {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bottom Nav Active State */
.nav-btn.active {
  color: #7e22ce;
  position: relative;
}

.nav-btn.active span:first-child {
  transform: scale(1.15);
  transition: transform 0.15s ease-out;
}

/* Scrollbar polish */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(243, 232, 255, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.5);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.7);
}

/* Preset button selected state */
.preset-btn.selected {
  border-color: #9333ea;
  background-color: #f3e8ff;
  color: #581c87;
  box-shadow: 0 0 0 1.5px #9333ea;
}

/* PIN Keypad styling */
.pin-key {
  height: 44px;
  border-radius: 14px;
  background-color: #f3e8ff;
  color: #3b0764;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  border: 1px solid rgba(216, 180, 254, 0.6);
  user-select: none;
}

.pin-key:active {
  transform: scale(0.92);
  background-color: #d8b4fe;
}

/* Supervisor Subtabs */
.supervisor-subtab.active {
  background-color: #7e22ce;
  color: #ffffff;
  border-color: #6b21a8;
}

/* Printing styles for certificate and supervisor report */
@media print {
  body * {
    visibility: hidden;
  }
  #printableCertificate, #printableCertificate *,
  #printableSupervisorReport, #printableSupervisorReport * {
    visibility: visible;
  }
  #printableCertificate, #printableSupervisorReport {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff !important;
  }
}