@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
  height: 100%;
  overflow: hidden;
}



@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 224 71.4% 4.1%;
    --card: 0 0% 100%;
    --card-foreground: 224 71.4% 4.1%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 71.4% 4.1%;
    --primary: 227 58% 65%;
    --primary-foreground: 210 20% 98%;
    --secondary: 220 14.3% 95.9%;
    --secondary-foreground: 220.9 39.3% 11%;
    --muted: 220 14.3% 95.9%;
    --muted-foreground: 220 8.9% 46.1%;
    --accent: 220 14.3% 95.9%;
    --accent-foreground: 220.9 39.3% 11%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 20% 98%;
    --border: 220 13% 91%;
    --input: 220 13% 91%;
    --ring: 227 58% 65%;
    --radius: 0.5rem;
    --chart-1: 227 58% 65%;
    --chart-2: 199 89% 48%;
    --chart-3: 168 83% 41%;
    --chart-4: 130 55% 50%;
    --chart-5: 256 89% 65%;
  }

  .dark {
    --background: 0 0% 0%;
    --foreground: 210 20% 98%;
    --card: 0 0% 0%;
    --card-foreground: 210 20% 98%;
    --popover: 0 0% 0%;
    --popover-foreground: 210 20% 98%;
    --primary: 227 58% 65%;
    --primary-foreground: 210 20% 98%;
    --secondary: 215 27.9% 16.9%;
    --secondary-foreground: 210 20% 98%;
    --muted: 0 0% 15%;
    --muted-foreground: 217.9 10.6% 64.9%;
    --accent: 0 0% 15%;
    --accent-foreground: 210 20% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 20% 98%;
    --border: 0 0% 20%;
    --input: 0 0% 20%;
    --ring: 227 58% 65%;
    --chart-1: 227 58% 65%;
    --chart-2: 199 89% 48%;
    --chart-3: 168 83% 41%;
    --chart-4: 130 55% 50%;
    --chart-5: 256 89% 65%;
  }
}


@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }

  /* Remove outline on all inputs, textareas, and other input elements when focused */
  input:focus,
  textarea:focus,
  select:focus,
  button:focus,
  [contenteditable]:focus {
    @apply outline-none focus-visible:ring-0 focus-visible:ring-offset-0;
  }

  /* Remove ring from all shadcn components */
  .focus-visible:ring-offset-0,
  .focus-visible:ring-0 {
    --tw-ring-offset-width: 0px !important;
    --tw-ring-offset-color: transparent !important;
    --tw-ring-color: transparent !important;
    --tw-ring-offset-shadow: none !important;
    --tw-ring-shadow: none !important;
  }
}


/* Hide scrollbar for Webkit browsers (Chrome, Safari, newer Edge) */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox and IE/Edge */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Shield tooltip animation */
@keyframes metaVerifiedPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.meta-verified-tooltip {
  animation: metaVerifiedPulse 0.3s ease-in-out;
}

@keyframes metaVerifiedShimmer {
  0% {
    background-position: -80px 0;
  }

  100% {
    background-position: 80px 0;
  }
}

.meta-verified-shimmer {
  background: linear-gradient(to right, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(59, 130, 246, 0) 100%);
  background-size: 80px 100%;
  background-repeat: no-repeat;
  animation: metaVerifiedShimmer 2s infinite linear;
  z-index: 1;
  position: relative;
}

/* Emoji styling */
.EmojiPickerReact {
  --epr-emoji-size: 26px !important;
  --epr-hover-bg-color: rgba(0, 0, 0, 0.1) !important;
  --epr-category-label-height: 30px !important;
}

/* Adjust emoji vertical alignment in messages */
.emoji-container {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 1px;
  font-size: 26px;
  /* Ensure consistent emoji size */
}