/* Container (sağ üst köşe) */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 9999;
}




/* Bildirim kutusu */
.toast {
  pointer-events: auto;
  color: black;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  min-width: 280px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.45s ease, transform 0.4s ease;
  padding: 1rem 1.25rem 1.5rem;
  animation: slideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}



  .toast.removing {
    animation: slideOut 0.35s ease forwards;
  }



/* Kapatma butonu */
.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: all 0.2s;
  border: none;
  background: transparent;
}


  .toast-close:hover {
    color: #ff0000;
  }




/* Başlık Kısmı */
.toast-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}


/* Mesaj kısmı */
.toast-message {
  font-size: 0.95rem;
  line-height: 1.4;
}



/* Butonlar */
.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.toast-action-button {
  flex: 1;
  border: none;
  border-radius: 2rem;
  padding: 8px 10px;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--button-accent);
  font-size: 13px;
  transition: all .2s;
}

  .toast-action-button:hover {
    background: var(--button-hover-accent);
    color: white;
  }



/* Progress bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  /* background: linear-gradient(90deg, #da5d24, #c62828); */
  background: var(--button-accent);
  width: 0%;
  animation: toastProgress linear forwards;
  border-radius: 4px;
}

@keyframes toastProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

/* Animasyonlar */
@keyframes slideIn {
  from {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
  }

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

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
  }
}





