/* ===== 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: 20px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.08);
  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: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert-icon svg {
  width: 46px;
  height: 46px;
}

.custom-alert-icon.success {
  background: hsla(var(--alert-success), 0.1);
  color: hsl(var(--alert-success));
  border-radius: 50%;
}

.custom-alert-icon.danger,
.custom-alert-icon.error {
  background: hsla(var(--alert-error), 0.1);
  color: hsl(var(--alert-error));
  border-radius: 50%;
}

.custom-alert-icon.warning {
  background: transparent;
  color: #f59e0b;
}

.custom-alert-icon.info {
  background: hsla(var(--alert-info), 0.1);
  color: hsl(var(--alert-info));
  border-radius: 50%;
}

.custom-alert-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.custom-alert-message {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 26px;
}

.custom-alert-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.custom-alert-btn {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  min-width: 105px;
}

.custom-alert-btn.primary {
  background: #2b8fe5;
  color: white;
  box-shadow: 0 2px 6px rgba(43, 143, 229, 0.3);
}

.custom-alert-btn.primary:hover {
  background: #1f79c6;
  box-shadow: 0 4px 12px rgba(43, 143, 229, 0.4);
  transform: translateY(-1px);
}

.custom-alert-btn.danger {
  background: #ef4444;
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.custom-alert-btn.danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.custom-alert-btn.secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
}

.custom-alert-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.custom-alert-btn:active {
  transform: translateY(0);
}

/* Animations for icons */
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-animate {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.5s ease-out forwards;
}

