/* Toast notifications — pd-toast avoids Bootstrap .toast { display:none } conflict */
.notifications {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10050;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.notifications .pd-toast {
  width: 340px;
  max-width: calc(100vw - 40px);
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  animation: pdToastSlideIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.pd-toast .column {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-toast .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-toast .content {
  display: flex;
  flex-direction: column;
}

.pd-toast .title {
  font-size: 13px;
  font-weight: 600;
}

.pd-toast .message {
  font-size: 13px;
  color: #555;
}

.pd-toast .close-btn {
  cursor: pointer;
  color: #aaa;
  flex-shrink: 0;
}

.pd-toast .close-btn:hover {
  color: #000;
}

.pd-toast--success .icon-wrap {
  background: rgba(10, 191, 48, 0.15);
}

.pd-toast--success i {
  color: #0abf30;
}

.pd-toast--error .icon-wrap {
  background: rgba(226, 77, 76, 0.15);
}

.pd-toast--error i {
  color: #e24d4c;
}

.pd-toast--warning .icon-wrap {
  background: rgba(233, 189, 12, 0.15);
}

.pd-toast--warning i {
  color: #e9bd0c;
}

.pd-toast--info .icon-wrap {
  background: rgba(52, 152, 219, 0.15);
}

.pd-toast--info i {
  color: #3498db;
}

.pd-toast::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  animation: pdToastProgress 4s linear forwards;
}

.pd-toast--success::before {
  background: #0abf30;
}

.pd-toast--error::before {
  background: #e24d4c;
}

.pd-toast--warning::before {
  background: #e9bd0c;
}

.pd-toast--info::before {
  background: #3498db;
}

@keyframes pdToastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.pd-toast--hide {
  animation: pdToastSlideOut 0.4s ease forwards;
}

@keyframes pdToastSlideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes pdToastProgress {
  to {
    width: 0%;
  }
}
