/* ============================================
   🎨 FinancePro - Estilos base do sistema
   Autor: Ricardo Luiz Botelho
   Local: clientes/static/clientes/css/base.css
   ============================================ */

/* Fonte global para todo o sistema */
body, table, input, select, textarea, button {
  font-family: 'Inter', sans-serif;
}

/* Ajuste para títulos e tabelas */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

table th, table td {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums; /* Alinha os números para melhor visualização */
}

/* Linhas alternadas */
table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f7fafc; /* azul clarinho */
}

table.table-striped tbody tr:nth-of-type(even) {
  background-color: #ffffff; /* branco */
}

/* Destaque ao passar o mouse */
table.table-hover tbody tr:hover {
  background-color: #e8f5e9 !important; /* verde suave */
  cursor: pointer;
  transition: background-color 0.3s ease;
}


/* Corpo */
body {
  padding-top: 56px;
  background: #f0f4f8; /* azul suave de fundo */
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
  background-color: #1b5e20 !important; /* verde escuro */
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #ffd600 !important; /* dourado */
}

.navbar-brand img {
  height: 28px;
  width: auto;
  margin-right: 8px;
}

.empresa-ativa {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

@media (max-width: 1399.98px) {
  .navbar .container { flex-wrap: wrap; }
  .navbar-collapse { width: 100%; }
}

@media (max-width: 575.98px) {
  body { padding-top: 64px; }
  .navbar-brand { font-size: 1.25rem; }
  .empresa-ativa { max-width: 105px; }
}

.nav-link {
  color: #a5d6a7 !important; /* verde claro */
}

.nav-link.active {
  color: #ffd600 !important; /* dourado */
  font-weight: 600;
}

.nav-link:hover {
  color: #c8e6c9 !important;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding: 1rem 0;
  background-color: #e3f2fd; /* azul suave */
  text-align: center;
  font-size: 0.9rem;
  color: #1b5e20; /* verde escuro */
}

/* Botões padrão */
.btn-primary {
  background-color: #2e7d32 !important; /* verde */
  border-color: #1b5e20 !important;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #1b5e20 !important;
  border-color: #145a32 !important;
  color: #ffd600;
}

.btn-secondary:hover {
  background-color: #1565c0 !important;
  color: #ffd600;
}

/* Botão Editar - cinza */
.btn-editar {
  background-color: #6c757d; /* cinza */
  border-color: #6c757d;
  color: #fff;
}

.btn-editar:hover {
  background-color: #5a6268; /* cinza mais escuro */
  border-color: #545b62;
  color: #ffd600; /* opcional, se quiser efeito hover */
}

/* Cores de status financeiro */
.status-aberto {
  color: #2e7d32;
  font-weight: 600;
}

.status-pago {
  color: #1b5e20;
  font-weight: 600;
}

.status-atrasado {
  color: #d32f2f;
  font-weight: 600;
}

/* Inputs e tabelas */
.form-control:focus {
  border-color: #1b5e20;
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Linhas alternadas em tabelas */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fcfa; /* tom levemente verde */
}

.table-hover tbody tr:hover {
  background-color: #e8f5e9; /* verde suave ao passar mouse */
  transition: background-color 0.2s ease-in-out;
}

/* Cards padrão */
.card {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

/* ================================
   🔜 Estrutura futura: Tema Escuro
   (será ativado via body.dark-mode)
   ================================ */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode .navbar {
  background-color: #0d3b0d !important;
}

body.dark-mode .nav-link {
  color: #c8e6c9 !important;
}

body.dark-mode .nav-link.active {
  color: #ffd600 !important;
}

body.dark-mode footer {
  background-color: #1b1b1b;
  color: #c8e6c9;
}

body.dark-mode .card {
  background-color: #1e1e1e;
  color: #e0e0e0;
  box-shadow: 0 4px 15px rgba(255,255,255,0.05);
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #1b1b1b;
}

body.dark-mode .table-hover tbody tr:hover {
  background-color: #333;
}
