/* ===== CUSTOM MODERN ALERT SYSTEM ===== */

:root {
  --alert-success: 142.1 70.6% 45.3%;
  --alert-error: 0 84.2% 60.2%;
  --alert-warning: 38 92% 50%;
  --alert-info: 217 91% 60%;
  --alert-bg: 0 0% 100%;
  --alert-overlay: 222.2 84% 4.9% / 0.4;
}

#custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsl(var(--alert-overlay));
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#custom-alert-overlay.active {
  opacity: 1;
  visibility: visible;
}

.custom-alert-modal {
  background: hsl(var(--alert-bg));
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

#custom-alert-overlay.active .custom-alert-modal {
  transform: scale(1);
}

.custom-alert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert-icon svg {
  width: 32px;
  height: 32px;
}

.custom-alert-icon.success {
  background: hsla(var(--alert-success), 0.1);
  color: hsl(var(--alert-success));
}

.custom-alert-icon.error {
  background: hsla(var(--alert-error), 0.1);
  color: hsl(var(--alert-error));
}

.custom-alert-icon.warning {
  background: hsla(var(--alert-warning), 0.1);
  color: hsl(var(--alert-warning));
}

.custom-alert-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
}

.custom-alert-message {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 24px;
}

.custom-alert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-alert-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.custom-alert-btn.primary {
  background: #3498db;
  color: white;
}

.custom-alert-btn.primary:hover {
  background: #2980b9;
}

.custom-alert-btn.secondary {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.custom-alert-btn.secondary:hover {
  background: #edf2f7;
}

/* Animations for icons */
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-animate {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.5s ease-out forwards;
}
