/* Flash Toast Styles - Shared across all portal pages */
.flash-toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100% - 40px);
}

.flash-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.2),
              0 0 0 1px rgba(15, 23, 42, 0.05);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flash-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.flash-toast-success .flash-toast-icon {
  color: #16a34a;
}

.flash-toast-danger .flash-toast-icon,
.flash-toast-error .flash-toast-icon {
  color: #dc2626;
}

.flash-toast-warning .flash-toast-icon {
  color: #d97706;
}

.flash-toast-info .flash-toast-icon {
  color: #2563eb;
}

.flash-toast-content {
  flex: 1;
  min-width: 0;
}

.flash-toast-message {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 500;
}

.flash-toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  margin-top: 2px;
}

.flash-toast-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.flash-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  width: 100%;
  transform-origin: left;
  animation: toastProgress var(--toast-duration, 5s) linear forwards;
}

.flash-toast-success .flash-toast-progress {
  color: #16a34a;
}

.flash-toast-danger .flash-toast-progress,
.flash-toast-error .flash-toast-progress {
  color: #dc2626;
}

.flash-toast-warning .flash-toast-progress {
  color: #d97706;
}

.flash-toast-info .flash-toast-progress {
  color: #2563eb;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.flash-toast.closing {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
  to {
    transform: translateY(-100%);
    opacity: 0;
    margin-bottom: -60px;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .flash-toast-container {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: none;
  }
}

