/* Overlay */
.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.modal[aria-hidden="false"] .modal__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Container do Modal */
.modal__container {
  background-color: #fff;
  padding: 1.5rem;
  /* max-width: 500px; */
  width: fit-content;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal[aria-hidden="false"] .modal__container {
  transform: translateY(0);
}

/* Título */
.modal__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Conteúdo */
.modal__content {
  margin-bottom: 1.5rem;
}

/* Botão de Fechamento */
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Rodapé */
.modal__footer {
  text-align: right;
}

/* Botões */
.modal__btn {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal__btn-primary {
  background-color: #007BFF;
  color: #fff;
}

.modal__btn:hover {
  opacity: 0.9;
}

body.modal-is-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
} 