/* --- Modal Backdrop --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

/* --- Modal Box --- */
.modal-content {
  background: #fff;
  border-radius: 14px;
  width: 420px;
  max-width: 100%;
  padding: 28px 30px 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalZoom 0.25s ease-out;
  font-family: system-ui, sans-serif;
  outline: none;
}

/* --- Title --- */
.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

/* --- Body --- */
.modal-body {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
}

/* --- Warning Icon --- */
.modal-icon {
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

/* --- Buttons --- */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.btn.danger {
  background: #d9534f;
  color: white;
}

.btn.danger:hover {
  background: #c84541;
}

.btn.secondary {
  background: #e5e7eb;
  color: #374151;
}

.btn.secondary:hover {
  background: #d1d5db;
}

/* --- Close Icon --- */
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #9ca3af;
  transition: 0.2s;
}

.modal-close:hover {
  color: #111827;
  transform: scale(1.12);
}

/* --- Animation --- */
@keyframes modalZoom {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* model inside error */
.alert-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b31919;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-icon {
  font-size: 20px;
  margin-top: 2px;
}

.alert-text div {
  line-height: 1.5;
  font-size: 15px;
}