/* ──────────────── ✨ Message Animation */
.message-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────── 🎉 Emoji Picker Styling */
emoji-picker::part(search) {
  display: none !important;
}

/* ──────────────── 🌐 Scrollbars (WebKit + Firefox) */
[b-scroll]::-webkit-scrollbar {
  width: 6px;
}

[b-scroll]::-webkit-scrollbar-track {
  background: transparent;
}

[b-scroll]::-webkit-scrollbar-thumb {
  background-color: #ab45f4;
  border-radius: 3px;
}

[b-scroll] {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ab45f4 transparent;
}

/* 🌐 Scrollbar volledig verbergen bij b-scroll="none" */
[b-scroll="none"] {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}

[b-scroll="none"]::-webkit-scrollbar {
  display: none;                /* Chrome/Safari/WebKit */
}

/* Autofill consistent en leesbaar maken */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #000 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  border: 1px solid #444; /* optioneel */
  transition: background-color 9999s ease-in-out 0s;
}

/* ──────────────── 🧭 Focus Cleanup */
*:focus-visible {
  outline: none;
  box-shadow: none;
}

.input-error {
  border-color: red !important;
  color: red !important;
}

.input-error::placeholder {
  color: red;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ──────────────── Pitch Generator */

[data-pitch="response"] p {
  margin: 0 0 1.5em 0;
}

/* ──────────────── Toastify */

.toastify.toastify-right,
.toastify.toastify-left,
.toastify.toastify-center {
  background: #000000 !important;
  color: #ffffff !important;
  border-radius: 0.5rem;
  padding: 14px 18px;
  font-size: 16.8px;
  font-weight:700;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: fit-content;
}

.toastify .toast-close {
  background: url("https://cdn.prod.website-files.com/68230c6631749997f8973c00/682da0070468e24a267bdf23_close.svg") no-repeat center center;
  background-size: contain;
  width: 12px;
  height: 12px;
  display: inline-block;
  opacity: 0.9;
  font-size: 0; /* hide the × character */
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
}

.toastify .toast-close:hover {
  opacity: 1;
}

/* ──────────────── Disabled button */

.button-disabled {
  background-color: #1e1e1e !important;
  color: #555 !important;
  border: 1px solid #333 !important;
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

.button-disabled * {
  color: #555 !important;
  fill: #555 !important;
  background-color: #2a2a2a !important;
  border-color: #333 !important;
}

/* ──────────────── Loader Overlay */

.loader-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.05);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.loader-dots {
  display: flex;
  gap: 8px;
}

.loader-dots div {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: bounce 0.8s infinite ease-in-out;
}

.loader-dots div:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* ──────────────── Ms Token (memberstack) */

.ms-token-input:hover ~ .ms-input {
 border-color: #2962ff;
 box-shadow: none;
}
.ms-token-input:focus ~ .ms-input {
	border-color: #2962ff;
 box-shadow: none;
}

input[data-ms-member="token"] {
  caret-color: transparent;
}