/* Reusable Components - AmicaColor */

/* Loader */
.loader {
  border: 4px solid var(--color-primary, #22c55e);
  border-top: 4px solid transparent;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

/* Chat Styling */
.chat-bubble-me {
  background: #22c55e;
  color: #000000;
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-other {
  background: #27272a;
  color: #ffffff;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid #3f3f46;
}

/* Badge transitions */
.badge-enter {
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-visible {
  transform: scale(1);
  opacity: 1;
}

/* Toast Notification Styles */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.toast.toast-success {
  background-color: rgba(24, 24, 27, 0.95);
  border: 1px solid #22c55e;
  color: #ffffff;
}

.toast.toast-error {
  background-color: rgba(24, 24, 27, 0.95);
  border: 1px solid #ef4444;
  color: #ffffff;
}

.toast.toast-info {
  background-color: rgba(24, 24, 27, 0.95);
  border: 1px solid #3b82f6;
  color: #ffffff;
}

.toast-hiding {
  opacity: 0;
  transform: translateX(100%);
}

/* Sticky Photo Preview */
.sticky-photo {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background-color: #18181b;
  border-bottom: 1px solid #27272a;
}

/* Touch-friendly cross buttons on mobile */
.remove-color-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

@media (max-width: 639px) {
  .remove-color-btn {
    min-width: 24px;
    min-height: 24px;
  }
}


