@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --primary-glow: rgba(14, 165, 233, 0.35);
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  user-select: none;
}

/* Flash alert animation for Deaf users when Hearing party speaks */
@keyframes flash-attention {
  0% { box-shadow: inset 0 0 0 0 rgba(234, 179, 8, 0); }
  50% { box-shadow: inset 0 0 50px 15px rgba(234, 179, 8, 0.45); }
  100% { box-shadow: inset 0 0 0 0 rgba(234, 179, 8, 0); }
}

.flash-screen {
  animation: flash-attention 0.8s ease-in-out;
}

/* Pulsing speech indicator */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulsing-mic {
  animation: pulse-ring 1.5s infinite ease-in-out;
}

/* Floating Camera Feed Card */
.camera-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
}

.camera-card.minimized {
  width: 140px !important;
  height: 105px !important;
  opacity: 0.85;
}

.camera-card.minimized:hover {
  opacity: 1;
}

/* Video Canvas Overlay */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.video-container video {
  transform: scaleX(-1); /* Mirror camera for natural gesture perception */
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.video-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  pointer-events: none;
}

/* Hold-to-confirm Circular / Bar progress */
.confirm-meter {
  transition: width 0.1s linear;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.8);
}
