body {
    font-family: 'Arial', sans-serif;
    background-color: #f1f8f4;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Usar min-height em vez de height */
    display: block; /* Remover flex para evitar centralização vertical */
}

.login-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 50px auto; /* Centralizar horizontalmente */
}

.logo {
    width: 200px;
    margin-bottom: 10px;
}

h1 {
    margin-bottom: 30px;
    color: #2e7d32; /* Verde orgânico mais forte */
    font-size: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    margin-bottom: 5px;
    text-align: left;
    color: #4caf50;
    font-weight: bold;
    font-size: 14px;
}

.login-form input {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background-color: #f9fdf9;
}

.login-form button {
    padding: 12px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: #4caf50;
}

.container {
    display: flex;
    min-height: 100vh; /* Usar min-height em vez de height */
    overflow: visible; /* Permitir que o conteúdo seja visível */
}

.sidebar {
    width: 250px;
    background-color: #e8f5e9;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    font-family: 'Poppins', sans-serif; /* Fonte moderna */
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
}

.sidebar .logo img {
    width: 100px;
    margin-bottom: 10px;
}

.usuario-logado {
    font-weight: bold;
    color: #2e7d32;
    margin-top: 10px;
    font-size: 18px;
}

.sidebar h2 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar nav ul li {
    width: 100%;
    margin-bottom: 20px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #388e3c;
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.sidebar nav ul li a:hover {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f1f8f4;
    overflow-y: auto; /* Permitir rolagem vertical quando necessário */
    display: flex;
    flex-direction: column;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
    background-color: #c8e6c9;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.section {
    display: auto;
}

.section h2 {
    color: #2e7d32;
    margin-bottom: 20px;
}

 /* Estilo Gestão usuários Acesso Administrador */

 /* Container principal da página de gestão */
 .user-form {
    margin-bottom: 30px;
    background-color: #f4f9f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .user-form input,
  .user-form select {
    padding: 10px;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    background-color: #f9fdf9;
  }
  
  .user-form button {
    background-color: #66bb6a;
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .user-form button:hover {
    background-color: #43a047;
  }
  
  .user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 20px;
  }
  
  .user-table thead {
    background-color: #f5f5f5;
    text-align: left;
  }
  
  .user-table th, .user-table td {
    padding: 8px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .user-table th {
    color: #444;
    font-weight: 600;
  }
  
  .user-table td.acao-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .user-table tr:hover {
    background-color: #f9f9f9;
  }
  
  .user-table select,
  .user-table input {
    font-size: 12px;
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .btn-salvar,
  .btn-excluir,
  .btn-derrubar {
    font-size: 11px;
    padding: 4px 8px;
    margin: 2px 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .btn-salvar {
    background-color: #4CAF50;
    color: white;
  }
  
  .btn-excluir {
    background-color: #f44336;
    color: white;
  }
  
  .btn-derrubar {
    background-color: #ff9800;
    color: white;
  }
  
  .btn-salvar:hover,
  .btn-excluir:hover,
  .btn-derrubar:hover {
    opacity: 0.9;
  }
  
  
  .user-form input,
  .user-form select,
  .user-form button {
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .user-form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .user-form button:hover {
    background-color: #0069d9;
  }
  
  .btn-voltar {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
  }
  
  
  .link-esqueci-senha {
    display: block;
    margin-top: 20px;
    color: #388e3c;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
  }
  .link-esqueci-senha:hover {
    text-decoration: underline;
  }

  /* Estilo da página de recuperação de senha */

.recuperar-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px 40px;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .recuperar-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #2e7d32;
  }
  
  .recuperar-container form {
    display: flex;
    flex-direction: column;
  }
  
  .recuperar-container input[type="email"] {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s ease;
  }
  
  .recuperar-container input[type="email"]:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  }
  
  .recuperar-container button {
    padding: 12px;
    background-color: #43a047;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .recuperar-container button:hover {
    background-color: #388e3c;
  }
  
  .recuperar-container .mensagem {
    text-align: center;
    margin-top: 20px;
    color: #d32f2f;
    font-weight: 500;
  }
  

  .btn-gestao {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
  }
  
  .btn-gestao:hover {
    background-color: #0056b3;
  }
  
  .form-transferencia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
  }
  
  .select-usuario {
    padding: 6px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  
  .btn-transferir {
    padding: 6px 10px;
    background-color: #007bff;
    color: white;
    font-size: 13px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .btn-transferir:hover {
    background-color: #0056b3;
  }
  

.logo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.logo-header .logo-img {
  max-width: 200px;
  height: auto;
}


/* Estilos adicionais para as telas de gestão */

/* Container da tabela com scroll */
.tabela-container {
  width: 100%;
  overflow-x: auto; /* Adiciona scroll horizontal se necessário */
  margin-bottom: 20px;
}

/* Altura máxima para a tabela com scroll vertical */
.tabela-scroll {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* Melhoria na aparência do filtro */
.filtro-container {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.filtro-label {
    font-weight: 600;
    color: #2e7d32;
    display: block;
    margin-bottom: 6px;
    font-family: 'Poppins', calibri;
}

.filtro-input {
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  width: 300px;
  max-width: 100%;
  transition: border-color 0.2s;
}

.filtro-input:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.25);
}

/* Estilos para a paginação */
.linha-seletor-paginacao {
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap: 10px;
  flex-wrap: wrap;
}

/* Estilos para cabeçalhos de tabela */
.user-table thead th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Estilos para linhas alternadas */
.user-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.user-table tbody tr:hover {
  background-color: #e8f5e9;
}

/* Responsividade */
@media (max-width: 768px) {
  .filtro-input {
    width: 100%;
  }
  
  .linha-seletor-paginacao {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Página de Login: layout dividido (pitch left + form right) ===== */
.login-page{
  background: linear-gradient(135deg, #0b7b49 0%, #0a6b41 40%, #074d30 100%);
  min-height: 100vh;
}

.login-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* left maior, right menor */
  align-items: stretch;
}

/* Left (pitch de planos) */
.login-left{
  color: #fff;
  padding: clamp(24px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 140% at 0% -20%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 60%),
    transparent;
}

.login-logo img{
  width: clamp(140px, 18vw, 180px);
  height: auto;
  display: block;
  margin-bottom: clamp(16px, 2vw, 24px);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.2));
}

.login-pitch h1{
  margin: 0 0 8px;
  color:#fff;
  font-weight: 700;
}
.login-pitch p{
  margin: 0 0 16px;
  color: rgba(255,255,255,.92);
  max-width: 54ch;
}

.selling-points{
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 56ch;
}
.selling-points li{
  position: relative;
  padding-left: 26px;
}
.selling-points li::before{
  content: "✔";
  position: absolute;
  left: 0; top: 0;
  color: #b9f6ca;
  font-weight: 700;
}

.login-ctas{
  display: flex; gap: 10px; flex-wrap: wrap;
}
.login-ctas .btn{
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.login-ctas .btn-outline{
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
}
.login-ctas .btn-outline:hover{
  background: rgba(255,255,255,.08);
}

/* Right (form) */
.login-right{
  background: #f7fbf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 56px);
}

.login-card{
  background: #fff;
  width: min(420px, 100%);
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 28px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  border: 1px solid #e9f0ec;
  margin: 0 auto;
}

.login-card h2{
  margin: 0 0 4px;
  color: #0b7b49;
}
.login-sub{
  margin: 0 0 18px;
  color: #607d8b;
  font-size: .95rem;
}

.login-form{
  display: grid;
  gap: 12px;
}
.login-form label{
  font-weight: 600;
  color: #2e7d32;
  font-size: 14px;
}
.login-form input{
  padding: 12px;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  background-color: #f9fdf9;
  font-size: 15px;
}
.login-form input:focus{
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
}
.login-form .btn{
  width: 100%;
  padding: 12px;
  border-radius: 10px;
}

/* Link de esqueci senha já existe no seu CSS; reforço a cor aqui */
.link-esqueci-senha{
  display: inline-block;
  margin-top: 10px;
  color: #388e3c;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

/* Notinha sob o card */
.login-footnote{
  text-align: center;
  margin-top: 14px;
  color: #607d8b;
}
.login-footnote a{ color: #2e7d32; text-decoration: none; }
.login-footnote a:hover{ text-decoration: underline; }

/* Responsivo */
@media (max-width: 960px){
  .login-shell{
    grid-template-columns: 1fr;
  }
  .login-left{
    order: 2;
    padding-top: 12px;
  }
  .login-right{
    order: 1;
  }
  .login-card{
    width: 100%;
  }
}

/* ===== Login – ajustes finais ===== */

/* mantém os overrides do html.login-standalone que você já colocou */
html.login-standalone{
  --header-height: 0px !important;
  scroll-padding-top: 0 !important;
}
html.login-standalone body{ padding-top: 0 !important; }
html.login-standalone .site-header{ display: none !important; }

html.login-standalone,
html.login-standalone body{
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-y: hidden; /* sem “dedinho” no desktop */
}
@media (max-width: 960px){
  html.login-standalone,
  html.login-standalone body{ overflow-y: auto; }
}

/* fundo claro só no body (já estava) */
.login-page{ background: #f7fbf8 !important; min-height: 100vh; }
@supports (min-height: 100dvh){ .login-page{ min-height: 100dvh; } }

/* ✅ volta o VERDE no painel esquerdo */
html.login-standalone .login-left{
  color: #fff;
  /* radial de brilho + gradiente verde principal */
  background:
    radial-gradient(120% 140% at 0% -20%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #0b7b49 0%, #0a6b41 40%, #074d30 100%) !important;
}

/* melhora contraste do texto do pitch */
html.login-standalone .login-left .login-pitch h1{ color:#fff; }
html.login-standalone .login-left .login-pitch p,
html.login-standalone .login-left .selling-points li{ color: rgba(255,255,255,.92); }
