/* PixelPaddle unified UI kit (toasts + loader) */

#pp-ui-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 100000;
  max-width: 420px;
}

.pp-ui-toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  animation: ppToastIn 180ms ease-out;
  font-size: 14px;
  line-height: 1.35;
}

.pp-ui-toast__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.pp-ui-toast__text { flex: 1 1 auto; }

.pp-ui-toast__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
}

.pp-ui-toast--success { background: linear-gradient(135deg, #16a34a, #15803d); }
.pp-ui-toast--error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.pp-ui-toast--info    { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.pp-ui-toast--warning { background: linear-gradient(135deg, #f59e0b, #d97706); }

@keyframes ppToastIn {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

#pp-ui-loader {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100001;
}

.pp-ui-loader__card {
  width: min(440px, 92vw);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}

.pp-ui-loader__top {
  padding: 16px 18px;
  background: linear-gradient(135deg, #090927 0%, #1f2937 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pp-ui-loader__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: ppSpin 0.8s linear infinite;
}

.pp-ui-loader__title { font-weight: 700; }

.pp-ui-loader__body {
  padding: 16px 18px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

@keyframes ppSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
