@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* ===== NAPPAY TOP-RIGHT TOAST NOTIFICATION SYSTEM ===== */
#np-toast-stack {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px !important;
  pointer-events: none !important;
  max-width: min(380px, calc(100vw - 24px)) !important;
}

@keyframes npToastSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(28px, -4px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes npToastFadeOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(24px, -4px, 0);
  }
}

.np-toast-item,
.toast-container {
  pointer-events: auto !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 240px !important;
  max-width: min(370px, calc(100vw - 24px)) !important;
  padding: 13px 34px 13px 14px !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
  color: #ffffff !important;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
  animation: npToastSlideIn 0.22s ease-out !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.np-toast-item.np-toast-leaving {
  animation: npToastFadeOut 0.18s ease-in forwards !important;
}

.np-toast-item.np-toast-success,
.toast-container.success-bg {
  background: #1f9d54 !important;
}

.np-toast-item.np-toast-error,
.toast-container.error-bg {
  background: #d9383a !important;
}

.np-toast-item.np-toast-warning,
.toast-container.warning-bg {
  background: #d9820f !important;
}

.np-toast-item.np-toast-info,
.toast-container.info-bg,
.toast-container.question-bg {
  background: #1d72b8 !important;
}

.np-toast-badge {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.np-toast-badge svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
}

.np-toast-msg,
.toast-message {
  color: #ffffff !important;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
  margin: 0 !important;
  word-break: break-word !important;
  flex: 1 1 auto !important;
}

.np-toast-close,
.toast-close {
  position: absolute !important;
  top: 6px !important;
  right: 9px !important;
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

.np-toast-close:hover,
.toast-close:hover {
  color: #ffffff !important;
}

.np-ajax-toast-trigger {
  display: none !important;
}

/* Keep confirmation dialog (type === 'question') clean and centered */
.alert-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 0;
  overflow: hidden;
  position: fixed;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2147483646;
}

.alert-frame {
  background: #fff;
  min-height: 240px;
  width: min(360px, calc(100vw - 32px));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  overflow: hidden;
}

.alert-header {
  display: flex;
  flex-direction: row;
  height: 90px;
  position: relative;
}

.alert-img {
  height: 46px;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.alert-close,
.alert-close-circle {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 6px;
  margin-top: 6px;
}

.alert-body {
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.alert-title {
  font-size: 17px !important;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
}

.alert-message {
  font-size: 14px !important;
  color: #475569;
  font-family: "Roboto", sans-serif;
  margin-bottom: 20px;
  line-height: 1.5;
}

.question-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.confirm-button,
.cancel-button,
.alert-button {
  min-width: 105px;
  height: 36px;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.question-bg { background: #1d72b8; }
.error-bg { background: #d9383a; }
.success-bg { background: #1f9d54; }
.warning-bg { background: #d9820f; }
.info-bg { background: #1d72b8; }

@keyframes npToastProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}
.np-toast-timer,
.toast-timer {
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 3.5px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  width: 100% !important;
  pointer-events: none !important;
}
