/* alerts.css - Centered with subtle colors */
.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 9999;
  text-align: center;
  min-width: 320px;
  max-width: 90%;
  opacity: 0;
  display: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-alert.show {
  display: block;
  animation: slideDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.custom-alert.success {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-top: 3px solid #0ea5e9;
  color: #0c4a6e;
}

.custom-alert.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-top: 3px solid #ef4444;
  color: #7f1d1d;
}

/* Icon animations */
.custom-alert.success h3::before {
  content: "✓";
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 50%;
  line-height: 60px;
  font-size: 32px;
  color: white;
  animation: checkmark 0.8s ease-in-out;
}

.custom-alert.error h3::before {
  content: "✗";
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  line-height: 60px;
  font-size: 32px;
  color: white;
  animation: shake 0.5s;
}

.custom-alert h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.custom-alert p {
  margin: 0;
  opacity: 0.8;
  font-size: 16px;
}

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.alert-overlay.show {
  display: block;
  opacity: 1;
}

/* Animations */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* Subtle glow effect */
.custom-alert.success {
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.1), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.custom-alert.error {
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.1), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .custom-alert {
    min-width: 280px;
    padding: 30px 20px;
  }
  
  .custom-alert h3 {
    font-size: 20px;
  }
  
  .custom-alert p {
    font-size: 14px;
  }
  
  .custom-alert.success h3::before,
  .custom-alert.error h3::before {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 28px;
  }
}
