/* Prepa Club Custom Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dialog Animation */
dialog {
  border: none;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

dialog[open] {
  animation: dialog-appear 0.25s ease-out forwards;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
}

@keyframes dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating WhatsApp Pulse Animation */
@keyframes custom-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

#floatingWhatsApp {
  animation: custom-pulse 2.2s infinite;
}

/* Smooth Form Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

/* Mobile bottom spacing to prevent sticky bar overlap */
@media (max-width: 640px) {
  body {
    padding-bottom: 60px;
  }
}
