/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Emoji Picker Styles */
.emoji-picker {
  --border-radius: 0.5rem;
  --border-size: 1px;
  --border-color: #e5e7eb;
  --background: #ffffff;
  --num-columns: 8;
  height: 350px;
  width: 350px;
}

/* Make emoji picker responsive on mobile */
@media (max-width: 640px) {
  .emoji-picker {
    width: 100%;
    max-width: 320px;
    height: 250px;
    --num-columns: 6;
  }
}

/* Drag and Drop Styles */
[data-file-attachment-target="dropzone"].drag-over {
  background-color: rgba(224, 231, 255, 0.95);
}

[data-file-attachment-target="dropzone"].drag-over .drag-over-indicator {
  display: flex !important;
}

.drag-over-indicator {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Preview Modal Styles */
.fixed.inset-0 {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Typing indicator dots */
.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: typingBounce 1.4s ease-in-out infinite both;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

/* Hide Trix attachment button */
.trix-button--icon-attach {
  display: none !important;
}
