/* ==========================================================================
   GIZA MODERN TOAST NOTIFICATIONS (TOASK)
   ========================================================================== */

#gizaToastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 32px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.giza-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.28s ease,
              margin-top 0.2s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.giza-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.giza-toast.hide {
  transform: translateX(110%);
  opacity: 0;
  margin-top: -50px;
}

/* Toast Icons */
.giza-toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.giza-toast-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Toast Body */
.giza-toast-content {
  flex: 1;
  min-width: 0;
}

.giza-toast-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.giza-toast-message {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  word-break: break-word;
  white-space: pre-line;
}

/* Close button */
.giza-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  margin: -4px -6px 0 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.giza-toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Types */
.giza-toast-success {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.18);
}
.giza-toast-success .giza-toast-icon { color: #10b981; }
.giza-toast-success .giza-toast-title { color: #34d399; }

.giza-toast-error {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(244, 63, 94, 0.18);
}
.giza-toast-error .giza-toast-icon { color: #f43f5e; }
.giza-toast-error .giza-toast-title { color: #fb7185; }

.giza-toast-warning {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.18);
}
.giza-toast-warning .giza-toast-icon { color: #f59e0b; }
.giza-toast-warning .giza-toast-title { color: #fcd34d; }

.giza-toast-info {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.18);
}
.giza-toast-info .giza-toast-icon { color: #0ea5e9; }
.giza-toast-info .giza-toast-title { color: #38bdf8; }

/* Progress Bar */
.giza-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.4;
  width: 100%;
  animation: gizaToastProgress linear forwards;
}

@keyframes gizaToastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Mobile responsive */
@media (max-width: 640px) {
  #gizaToastContainer {
    top: 14px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: 100%;
  }
}
