/* Toast Notifications */
.error-toast,
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 320px;
  max-width: 450px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease-out;
}

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

.error-toast {
  border-left: 4px solid #ef4444;
}

.success-toast {
  border-left: 4px solid #22c55e;
}

.error-toast-icon,
.success-toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.error-toast-icon {
  color: #ef4444;
}

.success-toast-icon {
  color: #22c55e;
}

.error-toast-content,
.success-toast-content {
  flex: 1;
}

.error-toast-content strong,
.success-toast-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0a1628;
  margin-bottom: 4px;
}

.error-toast-content p,
.success-toast-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.error-toast-close,
.success-toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  margin-left: 8px;
}

.error-toast-close:hover,
.success-toast-close:hover {
  color: #0a1628;
}

/* Spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.btn-icon.animate-spin {
  display: inline-block;
  margin-right: 8px;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .error-toast,
  .success-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}
