/* ===================================
   Modal Component
   =================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.is-active {
  display: flex;
}

.modal-content {
  background-color: var(--color-light);
  margin: auto;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  right: var(--space-md);
  top: var(--space-md);
  color: var(--color-neutral);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: var(--color-dark);
}

.modal-body {
  padding: var(--space-md) 0;
}

.text-center {
  text-align: center;
}

.success-icon {
  color: #28a745;
  margin-bottom: var(--space-md);
}

.modal h2 {
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.modal p {
  margin-bottom: var(--space-lg);
  color: var(--color-neutral);
}

.close-modal-btn {
  width: 100%;
}
