/* ==========================================================================
   BV Clinic - Patient Experience & Review Portal Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary-50: #fbf7fd;
  --primary-100: #f3e3fb;
  --primary-200: #e2b6f5;
  --primary-500: #9e25d3;
  --primary-600: #620a91;
  --primary-700: #620a91;
  --primary-800: #4a076f;
  --primary-900: #360551;

  --navy-900: #050505;
  --navy-800: #111014;
  --navy-700: #2b1833;

  --emerald-500: #10b981;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
}

body {
  font-family: var(--font-primary);
  background-color: #050505;
  color: #f8f5fb;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbar */
::-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;
}

/* --------------------------------------------------------------------------
   Emoji Face Rating Component Micro-Interactions
   -------------------------------------------------------------------------- */
.emoji-rating-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 0.6rem 0.8rem;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  transition: all 0.25s ease;
}

.emoji-rating-group:focus-within,
.emoji-rating-group:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.emoji-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 0.25rem;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  user-select: none;
}

.emoji-btn .emoji-icon {
  font-size: 1.85rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  filter: grayscale(40%) opacity(0.75);
}

.emoji-btn .emoji-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Hover State */
.emoji-btn:hover .emoji-icon {
  transform: scale(1.25) translateY(-3px);
  filter: grayscale(0%) opacity(1);
}

.emoji-btn:hover .emoji-label {
  color: #0f172a;
}

/* Selected States with specific color moods */
.emoji-btn.active {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.emoji-btn.active .emoji-icon {
  transform: scale(1.3) translateY(-2px);
  filter: grayscale(0%) opacity(1);
  animation: emoji-bounce 0.5s ease;
}

/* Specific Rating Colors */
.emoji-btn[data-rating="1"].active {
  border-color: #fca5a5;
  background: #fef2f2;
}

.emoji-btn[data-rating="1"].active .emoji-label {
  color: #dc2626;
  font-weight: 700;
}

.emoji-btn[data-rating="2"].active {
  border-color: #fdba74;
  background: #fff7ed;
}

.emoji-btn[data-rating="2"].active .emoji-label {
  color: #ea580c;
  font-weight: 700;
}

.emoji-btn[data-rating="3"].active {
  border-color: #fde047;
  background: #fefce8;
}

.emoji-btn[data-rating="3"].active .emoji-label {
  color: #ca8a04;
  font-weight: 700;
}

.emoji-btn[data-rating="4"].active {
  border-color: #86efac;
  background: #f0fdf4;
}

.emoji-btn[data-rating="4"].active .emoji-label {
  color: #16a34a;
  font-weight: 700;
}

.emoji-btn[data-rating="5"].active {
  border-color: #c66af0;
  background: #fbf7fd;
}

.emoji-btn[data-rating="5"].active .emoji-label {
  color: #620a91;
  font-weight: 700;
}

@keyframes emoji-bounce {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.4) translateY(-6px);
  }

  100% {
    transform: scale(1.3) translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   Interactive Chip & Pill Selectors
   -------------------------------------------------------------------------- */
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chip-btn:hover {
  background-color: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.chip-btn.active {
  background-color: #620a91;
  color: #ffffff;
  border-color: #620a91;
  box-shadow: 0 2px 8px rgba(98, 10, 145, 0.3);
}

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseSubtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-subtle {
  animation: pulseSubtle 2s infinite ease-in-out;
}

/* Gradient text utility */
.text-gradient-teal {
  background: linear-gradient(135deg, #620a91 0%, #620a91 50%, #9e25d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Badges */
.badge-soft-emerald {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-soft-amber {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-soft-rose {
  background-color: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.badge-soft-teal {
  background-color: #f3e3fb;
  color: #4a076f;
  border: 1px solid #e2b6f5;
}

.badge-soft-slate {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Blooming Velocity Branded Accents */
.badge-blooming {
  background: linear-gradient(135deg, rgba(98, 10, 145, 0.18) 0%, rgba(158, 37, 211, 0.16) 100%);
  border: 1px solid rgba(158, 37, 211, 0.3);
  color: #620a91;
}

.text-gradient-blooming {
  background: linear-gradient(135deg, #620a91 0%, #9e25d3 55%, #c66af0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blooming-glow {
  box-shadow: 0 0 18px -3px rgba(158, 37, 211, 0.45), 0 0 8px -2px rgba(98, 10, 145, 0.45);
}

/* Modal Backdrop */
.modal-overlay {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Confetti Canvas Container */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}




/* ==========================================================================
   Blooming Velocity Brand Theme
   Dark Purple: #620A91 | Light Purple: #9E25D3
   ========================================================================== */
:root {
  --bv-purple-dark: #620A91;
  --bv-purple-light: #9E25D3;
  --bv-purple-soft: #C66AF0;
  --bv-black: #050505;
  --bv-surface: #0B0B0D;
  --bv-surface-2: #111014;
  --bv-border: #382044;
  --bv-text: #F8F5FB;
  --bv-muted: #B8AFC0;
}

.text-gradient-teal,
.text-gradient-blooming {
  background: linear-gradient(135deg, var(--bv-purple-dark) 0%, var(--bv-purple-light) 60%, var(--bv-purple-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-blooming {
  background: linear-gradient(135deg, rgba(98, 10, 145, .22), rgba(158, 37, 211, .16));
  border-color: rgba(158, 37, 211, .45);
  color: #DDA8F4;
}

.blooming-glow {
  box-shadow: 0 0 20px -4px rgba(158, 37, 211, .5), 0 0 10px -5px rgba(98, 10, 145, .75);
}