/* Fundo escuro semi-transparente */
.modal {
  display: none; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s forwards;
}

/* Modal visível */
.modal.show {
  display: flex;
}

/* Conteúdo da modal */
.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 300px;
  text-align: center;
  position: relative;
  animation: slideDown 0.4s forwards;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Botão fechar X */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Imagem de erro menor e centralizada */
#modal-img {
  width: 35px;
  height: 35px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Texto da mensagem */
.modal-content p {
  font-size: 14px;
  color: #333;
}

/* Animações */
@keyframes fadeIn {
  from {background: rgba(0,0,0,0);}
  to {background: rgba(0,0,0,0.5);}
}

@keyframes slideDown {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
