/* Overlay */
.simple-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Alert Box */
.simple-alert-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Animated Icon Box */
.simple-alert-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  position: relative;
}

/* Success Icon */
.simple-alert-icon-success {
  color: #28a745;
  animation: bounceIn 0.6s ease-in-out;
}

/* SVG Circle */
.simple-alert-circle {
  stroke: #28a745;
  stroke-width: 4;
  stroke-dasharray: 151; /* Circumference of the circle */
  stroke-dashoffset: 151;
  animation: drawCircle 0.5s ease-in-out forwards;
}

/* SVG Checkmark */
.simple-alert-check {
  stroke: #28a745;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48; /* Length of the checkmark */
  stroke-dashoffset: 48;
  animation: drawCheck 0.3s 0.5s ease-in-out forwards;
}

/* Title */
.simple-alert-title {
  margin: 0 0 10px;
  font-size: 20px;
  color: #333;
}

/* Text */
.simple-alert-text {
  margin: 0 0 20px;
  font-size: 16px;
  color: #666;
}

/* Confirm Button */
.simple-alert-confirm {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.simple-alert-confirm:hover {
  background: #0056b3;
}

/* Alert Box Types */
.simple-alert-success {
  border: 1px solid #28a745;
}
.simple-alert-error {
  border-left: 5px solid #dc3545;
}
.simple-alert-warning {
  border-left: 5px solid #ffc107;
}
.simple-alert-info {
  border-left: 5px solid #17a2b8;
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCircle {
  from {
    stroke-dashoffset: 151; /* Circle is hidden */
  }
  to {
    stroke-dashoffset: 0; /* Circle is fully visible */
  }
}

@keyframes drawCheck {
  from {
    stroke-dashoffset: 48; /* Checkmark is hidden */
  }
  to {
    stroke-dashoffset: 0; /* Checkmark is fully visible */
  }
}
