/* Custom Base and Component Styles for صيدليتي 24/7 */

@layer base {
  body {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  input, textarea {
    user-select: text;
  }
}

/* Custom Scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Chat bubble animation */
@keyframes bubbleEntrance {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble-in {
  animation: bubbleEntrance 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Active tab style */
.active-tab {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Modal Zoom In */
@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-zoom {
  animation: modalZoomIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse badge ring */
@keyframes ringPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

.pulse-ring {
  animation: ringPulse 2s infinite;
}

/* Interactive Card Hover Effect */
.med-card {
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.med-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}