/* ====== ESTILO PARA OS MODAIS LEGAIS ====== */
.mundohoje-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.mundohoje-modal.show { opacity: 1; }

.mundohoje-modal-content {
  background: #fff;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.mundohoje-modal.show .mundohoje-modal-content { transform: scale(1); }

.mundohoje-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
}
.mundohoje-modal-close:hover { color: #000; }

.mundohoje-alert {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  color: #0073aa;
  font-weight: 600;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
  z-index: 100010;
  opacity: 0;
  transition: all 0.3s ease;
  text-align: center;
}
.mundohoje-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mundohoje-redirect-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.mundohoje-redirect-msg.show {
  opacity: 1;
}
button[id^="confirm"], .mundohoje-modal-ok {
  background-color: #888;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: not-allowed;
  transition: background-color 0.3s ease;
}

button[id^="confirm"]:enabled, .mundohoje-modal-ok:enabled {
  cursor: pointer;
}

button[id^="confirm"].active, .mundohoje-modal-ok.active {
  background-color: #2ecc71 !important; /* verde */
}

/* 🔒 Travamento total enquanto o modal está ativo */
body.locked {
  pointer-events: none !important;
}

/* Apenas o modal ativo continua recebendo eventos */
body.locked .mundohoje-modal.show {
  pointer-events: all !important;
  cursor: default;
}

/* Efeitos visuais do fundo bloqueado */
body.locked::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

