.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 300px;
  max-width: 90vw;
  padding: 12px 16px;

  border-radius: 4px;
  font-size: 14px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  animation: toast-slide-down 0.3s ease-out;
}

.toast-icon {
  font-weight: 700;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.toast-success {
  background-color: #3EB84B;
}

.toast-warning {
  background-color: #FFBF4A;
  color: #1a1a1a; /* better contrast on yellow */
}

.toast-error {
  background-color: #DC143CBF;
}

@keyframes toast-slide-down {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal {
  position: relative;
  background: #fff;
  width: 520px;
  max-width: 90vw;

  border-radius: 6px;
  overflow: hidden;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  font-family: "Segoe UI", sans-serif !important;

  animation: modal-fade-in 0.25s ease-out;
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
}

.custom-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-modal-icon {
  font-size: 18px;
}

.custom-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.custom-modal-body {
  padding: 20px 18px;
  font-size: 14px;
  color: #333;
}

.custom-modal-footer {
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.custom-modal-warning .custom-modal-header {
  background-color: #FFBF4A;
  color: #1a1a1a;
}

.custom-modal-error .custom-modal-header {
  background-color: #DC143CBF;
  color: #fff;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
