/* VARIÁVEIS DE CORES */
:root {
  --cor-primaria: #0891b2;
  --cor-primaria-hover: #0e7490;
  --cor-secundaria: #ea580c;
  --cor-secundaria-hover: #b84d14;
  --cor-cancelar: #dc2626;
  --cor-cancelar-hover: #b91c1c;
  --bg-escuro: #0d1117;
  --card: #161b22;
  --borda: #30363d;
  --texto: #e6edf3;
  --texto-fraco: #8b949e;
  --fundo: #0d1117;
  --superficie: #161b22;
  --laranja: #f87c16;
  --texto: #e6edf3;
  --texto-suave: #8b949e;
}

button:disabled {
  color: gray;
  cursor: not-allowed;
}

.erro {
  display: flex;
  width: 100%;
  background-color: #d32f2f;
  color: white;
  text-align: center;
  border-radius: 0 10px 10px 10px;
  padding: 5px;
}

/* Overlay da tela de confirmação */
.confirmacao-overlay,
.mensagem-overlay,
.overlay {
  position: fixed; /* fica sobre o dashboard */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* fundo semitransparente */
  align-items: center;
  justify-content: center;
  z-index: 9999; /* acima de tudo */
}

.tela-confirmacao {
  background: #1f2937; /* cor escura tipo dashboard */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
}

/* Título */
.tela-confirmacao h2 {
  color: #f97316;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.tela-confirmacao .botoes-container {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
  gap: 10px;
}

.mensagem {
  background: #161b22;
  border: 0.5px solid #30363d;
  border-radius: 14px;
  padding: 28px 24px;
  width: 90%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: fadeInScale 0.2s ease;
}

.mensagem-icone {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mensagem.sucesso .mensagem-icone {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.mensagem.erro .mensagem-icone {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.mensagem-titulo {
  font-size: 15px;
  font-weight: 500;
  color: #e6edf3;
  margin: 0;
}

.mensagem-texto {
  font-size: 13px;
  color: #8b949e;
  line-height: 1.6;
  margin: 0;
}

.mensagem-barra {
  width: 100%;
  height: 3px;
  border-radius: 3px;
  margin-top: 4px;
  animation: barra 3s linear forwards;
}

.mensagem.sucesso .mensagem-barra {
  background: #10b981;
}
.mensagem.erro .mensagem-barra {
  background: #ef4444;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes barra {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.botao-primario {
  background-color: var(--cor-secundaria);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}

.botao-primario:hover {
  background: var(--cor-secundaria-hover);
}

.botao-secundario {
  background: var(--cor-primaria);
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}

.botao-secundario:hover {
  background: var(--cor-primaria-hover);
}

.botao-cancelar {
  background-color: var(--cor-cancelar);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
}

.botao-cancelar:hover {
  background: var(--cor-cancelar-hover);
}

.botao-acao {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

/* MENU INFERIOR */
.menu-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--superficie);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.menu-item {
  background: none;
  border: none;
  color: var(--texto-suave);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
}

.menu-item.ativo {
  color: var(--laranja);
}
