.modal-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.modal-icon svg {
  color: inherit;
}

.icon-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;

  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.show {
  display: flex;
}

.modal-container {
  max-width: 400px;
  width: 90%;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-family: "Public Sans", sans-serif;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  transform: translateY(-20px);
}

.modal-overlay.show .modal-card {
  opacity: 1;
  transform: translateY(0);
}

.modal-icon {
  margin-bottom: 16px;
}

.modal-icon img {
  width: 64px;
  height: 64px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-message {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.modal-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.modal-btn:hover {
  transform: translateY(-1px);
}

.modal-btn:active {
  transform: translateY(0);
}

.modal-card.success .modal-btn.primary {
  background: #198754;
  /* Bootstrap green */
  color: #fff;
}

.modal-card.success .modal-btn.primary:hover {
  background: #157347;
}

.modal-card.error .modal-btn.primary {
  background: #dc3545;

  color: #fff;
}

.modal-card.error .modal-btn.primary:hover {
  background: #bb2d3b;
}

.modal-card.warning .modal-btn.primary {
  background: #ffc107;

  color: #212529;
}

.modal-card.warning .modal-btn.primary:hover {
  background: #e0a800;
}

.modal-card.info .modal-btn.primary {
  background: #0dcaf0;

  color: #fff;
}

.modal-card.info .modal-btn.primary:hover {
  background: #0bb2d4;
}

.modal-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

.modal-btn.secondary:hover {
  background: #e2e2e2;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #000;
}
