/* ===== BASE ===== */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f2f5;
}

/* ===== CONTAINERS ===== */
.container {
  background: #fff;
  margin: 30px auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 900px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.container-financeiro {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* ===== TEXTOS ===== */
h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* ===== INPUTS ===== */
input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

select {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ===== BOTÕES ===== */
button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #0056b3;
}

/* BOTÃO PAGAR */
.btn-pagar {
  margin-top: 10px;
  padding: 8px 12px;
  background: green;
}

.btn-pagar:hover {
  background: darkgreen;
}

/* BOTÃO SAIR (isolado) */
.btn-sair {
  width: auto !important;
  background-color: #e74c3c;
  padding: 10px 20px;
}

.btn-sair:hover {
  background-color: #c0392b;
}

/* ===== TOPO ===== */


/* ===== STATUS ===== */
.status {
  font-weight: bold;
}

.pendente {
  color: orange;
}

.pago {
  color: green;
}

/* ===== CARDS ===== */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;
}
.card p {
  margin: 5px 0;
}

/* URGENTE */
.card-urgente {
  border-left: 6px solid red;
  background: #fff3f3;
  position: relative;
}

.card-urgente::before {
  content: "⚠ URGENTE";
  color: white;
  background: red;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: -10px;
  right: 10px;
  border-radius: 5px;
}

/* PAGO */
.card-pago {
  background: #f2f2f2;
  opacity: 0.7;
}

.card-pago .status {
  color: gray;
}

/* ===== BUSCA ===== */
#busca {
  width: 100%;
  padding: 10px;
  margin: 10px 0 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.sem-resultado {
  text-align: center;
  color: #999;
  font-size: 16px;
  margin-top: 20px;
}

/* ===== RESUMO ===== */
.resumo {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.box {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  color: white;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.box:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.urgente-box {
  background: red;
}

.pendente-box {
  background: orange;
}

.pago-box {
  background: green;
}

/* ===== OUTROS ===== */
.sucesso {
  text-align: center;
  color: green;
  margin-top: 10px;
  display: none;
}

.urgente {
  color: red;
  font-weight: bold;
}

.normal {
  color: #555;
}

/* ===== LOGIN PREMIUM ===== */
body.login-page {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  font-family: Arial, sans-serif;
}

/* CARD */
.login-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.5s ease;
}

/* ÍCONE */
.login-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

/* INPUTS */
.login-card input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
}

.login-card input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* BOTÃO */
.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ERRO */
.erro {
  color: red;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.campo-senha {
  position: relative;
}

.campo-senha input {
  width: 100%;
  padding-right: 0px; /* espaço pro ícone */
}

.icone-olho {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
}

.btn-login:disabled {
  background: #999;
  cursor: not-allowed;
}


#usuarioLogado {
  font-weight: bold;
}

#usuarioLogado {
  font-weight: bold;
  font-size: 14px;
}

button {
  display: block;
}

/* FUNDO ESCURO */
.popup {
  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;
}

/* CAIXA */
.popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  text-align: center;
}

/* BOTÃO */
.popup-content button {
  margin-top: 15px;
  width: 100%;
}

.popup-content input,
.popup-content select {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ANIMAÇÃO */
@keyframes aparecer {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.alerta-pix {
  display: none; /* começa escondido */
  background: red;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  animation: piscar 1s infinite;
}

@keyframes piscar {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.subtitulo {
  text-align: center;
  font-size: 15px;
  color: #1f2937; /* tom mais sofisticado */
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.login-icon img {
  width: 180px;
  height: auto;
}

.login-card {
  width: 100%;
  max-width: 350px;
  margin: auto;
  padding: 20px;
}

.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

* {
  box-sizing: border-box;
}

.topo {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e3a8a;
  color: white;
  padding: 10px 20px;
}

.marca strong {
  font-size: 18px;
}

.slogan-topo {
  font-size: 12px;
  opacity: 0.8;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.dash-card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dash-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #555;
}

.dash-card span {
  font-size: 28px;
  font-weight: bold;
}

.dash-card.total span {
  color: #4f46e5;
}

.dash-card.pendente span {
  color: #f59e0b;
}

.dash-card.pago span {
  color: #16a34a;
}

.dash-card.urgente span {
  color: #dc2626;
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

.top-link {
  position: absolute;
  top: 15px;
  right: 25px;
  
}

.top-link a {
  color: #06191f;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: 0.2s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.top-link a:hover {
  color: #060c01;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #1e1e2f;
  color: #bbb;
  padding: 10px 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  position: relative;
  color: #dfdee9;
  text-decoration: none;
  margin-left: 15px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.dash-card {
  cursor: pointer;
}

.dash-card:hover {
  transform: translateY(-3px);
}

.dash-card.ativo {
  border: 2px solid #cbc8f3;
}

.login-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.login-icon img {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.sugestoes {
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  z-index: 9999;
  display: block;
}

.sugestao-item {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: #333;
  background: white;
}

.sugestao-item:hover {
  background: #f1f5f9;
}