/* ======================
   MODAL DE SENHA
====================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.ativo {
  display: flex;
}

.modal {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  animation: modalFade 0.25s ease;
}

.modal h3 {
  color: var(--verde);
  margin-bottom: 10px;
}

.modal p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.modal input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 15px;
}

.modal input:focus {
  outline: none;
  border-color: var(--verde);
}

.modal-acoes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-confirmar {
  background: var(--verde);
  color: #fff;
  flex: 1;
}

.btn-cancelar {
  background: #ccc;
  color: #333;
  flex: 1;
}

.btn-confirmar:hover {
  background: var(--verde-escuro);
}

.btn-cancelar:hover {
  background: #b5b5b5;
}

/* Erro */
.erro-senha {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

/* Animação */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .modal {
    margin: 0 15px;
  }
}

.modal-partida {
  max-width: 500px;
}

.form-grupo {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-grupo label {
  font-size: 14px;
  margin-bottom: 4px;
}

.form-grupo input,
.form-grupo select {
  padding: 6px;
  font-size: 14px;
}

.erro-form {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

/* CONTROLE DE EXIBIÇÃO DOS MODAIS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.ativo {
  display: flex;
}

.erro-senha {
  display: none;
  color: red;
  font-size: 14px;
  margin-top: 10px;
}

