/* Your custom CSS here */

/* ===== FIX TOAST POSITION BELOW NAVBAR ===== */
 .pnotify.pnotify-positioned {
    top: 90px !important;
}
@media (max-width: 768px) {
    .pnotify.pnotify-positioned {
        top: 120px !important;
    }
}

/* ===== LBFS PNotify Theme Override (force brand colors) =====
   Palette:
   - Primary: #7a1f1f
   - Soft bg: #fae7d5
*/

/* Force the CSS variables used by the "custom" styling */
[data-pnotify].custom-elem,
[data-pnotify].custom-elem.pnotify-mode-light,
[data-pnotify].custom-elem.pnotify-mode-dark,
[data-pnotify].custom-elem.pnotify-mode-no-preference {
  --notice-background-color: #fae7d5 !important;
  --notice-border-color: #7a1f1f !important;
  --notice-text-color: #7a1f1f !important;
  --notice-icon-filter: invert(15%) sepia(95%) saturate(7000%) hue-rotate(350deg) brightness(90%) contrast(95%) !important;

  --info-background-color: #fae7d5 !important;
  --info-border-color: #7a1f1f !important;
  --info-text-color: #7a1f1f !important;
  --info-icon-filter: invert(15%) sepia(95%) saturate(7000%) hue-rotate(350deg) brightness(90%) contrast(95%) !important;

  --success-background-color: #fae7d5 !important;
  --success-border-color: #7a1f1f !important;
  --success-text-color: #7a1f1f !important;
  --success-icon-filter: invert(15%) sepia(95%) saturate(7000%) hue-rotate(350deg) brightness(90%) contrast(95%) !important;

  --error-background-color: #fae7d5 !important;
  --error-border-color: #7a1f1f !important;
  --error-text-color: #7a1f1f !important;
  --error-icon-filter: invert(15%) sepia(95%) saturate(7000%) hue-rotate(350deg) brightness(90%) contrast(95%) !important;
}

/* Force the actual rendered container styles (kills any remaining green) */
[data-pnotify] .pnotify-container.custom-container {
  background-color: #fae7d5 !important;
  color: #7a1f1f !important;
  border-left: 4px solid #7a1f1f !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(122, 31, 31, 0.18) !important;
}

[data-pnotify] .pnotify-container.custom-container.custom-success,
[data-pnotify] .pnotify-container.custom-container.custom-error,
[data-pnotify] .pnotify-container.custom-container.custom-info,
[data-pnotify] .pnotify-container.custom-container.custom-notice {
  background-color: #fae7d5 !important;
  border-left-color: #7a1f1f !important;
  color: #7a1f1f !important;
}

[data-pnotify] .pnotify-text,
[data-pnotify] .pnotify-title,
[data-pnotify] .custom-text,
[data-pnotify] .custom-title {
  color: #7a1f1f !important;
}

/* ===== Redesign: polished notification card ===== */
[data-pnotify].custom-elem {
  border-radius: 16px !important;
  overflow: hidden !important;
}

[data-pnotify].custom-elem.pnotify-shadow {
  box-shadow: 0 18px 40px rgba(38, 17, 17, 0.22), 0 6px 14px rgba(38, 17, 17, 0.14) !important;
}

[data-pnotify] .pnotify-container.custom-container {
  width: min(420px, calc(100vw - 2rem)) !important;
  min-height: 0 !important;
  position: relative !important;
  border-left: 0 !important;
  border-radius: 16px !important;
  padding: 0 !important;
  background: linear-gradient(145deg, #fff5ec 0%, #fae7d5 100%) !important;
}

[data-pnotify] .pnotify-container.custom-container::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #a62a2a 0%, #7a1f1f 100%);
}

[data-pnotify] .custom-content {
  padding: 1rem 2.8rem 1rem 1rem !important;
}

[data-pnotify] .pnotify-text,
[data-pnotify] .custom-text {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #622020 !important;
}

/* Content-focused redesign for success toasts */
[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content::before {
  content: "✓";
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #28a745 0%, #1f8a38 100%);
  box-shadow: 0 3px 8px rgba(31, 138, 56, 0.35);
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-text {
  color: #5c2525 !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

[data-pnotify] .pnotify-closer.custom-closer,
[data-pnotify] .pnotify-sticker.custom-sticker {
  top: 0.6rem !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(122, 31, 31, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #7a1f1f !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 180ms ease !important;
}

[data-pnotify] .pnotify-closer.custom-closer {
  right: 0.6rem !important;
}

[data-pnotify] .pnotify-sticker.custom-sticker {
  right: 2.7rem !important;
}

[data-pnotify] .pnotify-closer.custom-closer:hover,
[data-pnotify] .pnotify-sticker.custom-sticker:hover {
  transform: translateY(-1px) !important;
  background: #fff !important;
  border-color: rgba(122, 31, 31, 0.35) !important;
}

@media (max-width: 576px) {
  [data-pnotify] .pnotify-container.custom-container {
    width: calc(100vw - 1.25rem) !important;
  }

  [data-pnotify] .custom-content {
    padding: 0.875rem 2.5rem 0.875rem 0.875rem !important;
  }

  [data-pnotify] .pnotify-container.custom-container.custom-success .custom-content {
    gap: 0.625rem !important;
  }
}

/* ===== Unified toast theme for all statuses ===== */
[data-pnotify] .pnotify-container.custom-container.custom-success,
[data-pnotify] .pnotify-container.custom-container.custom-error,
[data-pnotify] .pnotify-container.custom-container.custom-info,
[data-pnotify] .pnotify-container.custom-container.custom-notice {
  background: linear-gradient(145deg, #fff5ec 0%, #fae7d5 100%) !important;
  border: 1px solid rgba(122, 31, 31, 0.25) !important;
  box-shadow: 0 14px 34px rgba(122, 31, 31, 0.2) !important;
}

[data-pnotify] .pnotify-container.custom-container.custom-success::before,
[data-pnotify] .pnotify-container.custom-container.custom-error::before,
[data-pnotify] .pnotify-container.custom-container.custom-info::before,
[data-pnotify] .pnotify-container.custom-container.custom-notice::before {
  width: 5px;
  background: linear-gradient(180deg, #a62a2a 0%, #7a1f1f 100%);
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-content {
  padding: 1rem 3rem 1rem 1rem !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 31, 31, 0.08), transparent 45%),
    transparent;
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content::before,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-content::before,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-content::before,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-content::before {
  content: "i";
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  margin-top: 0.02rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #a62a2a 0%, #7a1f1f 100%);
  box-shadow: 0 5px 12px rgba(122, 31, 31, 0.3);
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-text {
  color: #5c2525 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

[data-pnotify] .pnotify-container.custom-container.custom-success .pnotify-closer.custom-closer,
[data-pnotify] .pnotify-container.custom-container.custom-success .pnotify-sticker.custom-sticker,
[data-pnotify] .pnotify-container.custom-container.custom-error .pnotify-closer.custom-closer,
[data-pnotify] .pnotify-container.custom-container.custom-error .pnotify-sticker.custom-sticker,
[data-pnotify] .pnotify-container.custom-container.custom-info .pnotify-closer.custom-closer,
[data-pnotify] .pnotify-container.custom-container.custom-info .pnotify-sticker.custom-sticker,
[data-pnotify] .pnotify-container.custom-container.custom-notice .pnotify-closer.custom-closer,
[data-pnotify] .pnotify-container.custom-container.custom-notice .pnotify-sticker.custom-sticker {
  border-color: rgba(122, 31, 31, 0.35) !important;
  color: #7a1f1f !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

/* Respect PNotify hidden state (prevents broken floating controls) */
[data-pnotify] .pnotify-closer.pnotify-hidden,
[data-pnotify] .pnotify-sticker.pnotify-hidden {
  display: none !important;
}

/* Stable toast layout */
[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-content {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
}

[data-pnotify] .pnotify-container.custom-container.custom-success .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-text,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-text {
  margin-right: 0.25rem !important;
}

/* Keep step-button chevrons visually identical everywhere */
.form-actions .btn i.bi-chevron-left,
.form-actions .btn i.bi-chevron-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  font-size: 0.95rem;
  line-height: 1;
}

/* ===== Toast controls fix: remove pause, align close ===== */
[data-pnotify] .pnotify-sticker.custom-sticker {
  display: none !important;
}

[data-pnotify] .pnotify-closer.custom-closer {
  position: absolute !important;
  top: 0.55rem !important;
  right: 0.7rem !important;
  transform: none !important;
  z-index: 2 !important;
}

[data-pnotify] .pnotify-closer.custom-closer:hover {
  transform: translateY(-1px) !important;
}

[data-pnotify] .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-success .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-error .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-info .custom-content,
[data-pnotify] .pnotify-container.custom-container.custom-notice .custom-content {
  padding-right: 2.75rem !important;
}

[data-pnotify] .pnotify-container.custom-container {
  overflow: hidden !important;
}