/* Adicione isso em um novo arquivo chamado tema-fazenda.css */
:root {
  --bs-primary: #2e7d32; /* Verde escuro */
  --bs-primary-rgb: 46, 125, 50;
  --bs-primary-dark: #1b5e20; /* Verde mais escuro */
  --bs-primary-light: #81c784; /* Verde claro */
}

[data-topbar="dark"] #page-topbar {
    background-color: var(--bs-primary-dark) !important;
    margin-left: 0 !important; /* Remove a margem esquerda que causa o roxo */
}

/* Corrigir a navbar-brand-box (logo) */
.navbar-brand-box {
    background-color: var(--bs-primary-dark) !important;
}

/* Corrigir o menu vertical (sidebar) se estiver visível */
.vertical-menu {
    background-color: var(--bs-primary-dark) !important;
    border-right-color: var(--bs-primary-dark) !important;
}

/* Remover gradiente roxo do template original */
:root {
    --bs-header-dark-bg: var(--bs-primary-dark) !important; /* Substitui o gradiente roxo */
    --bs-sidebar-bg: var(--bs-primary-dark) !important;
}

/* Corrigir cores do menu */
body[data-sidebar="dark"] #sidebar-menu ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
}

body[data-sidebar="dark"] #sidebar-menu ul li.mm-active > a {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Estilo para o h1 */
h1 {
    text-align: center;
    padding: 20px 0 15px 0;
    margin-top: 20px;
}

/* Estilo para os campos de formulário quando focados */
.form-control:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.form-select:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}

/* Alterar cor do hover no menu principal */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--bs-primary) !important;
}

/* Alterar cor do dropdown quando aberto */
.navbar-nav .dropdown.show .nav-link {
    color: var(--bs-primary) !important;
}

/* Alterar cor dos itens do dropdown quando hover */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(46, 125, 50, 0.1) !important;
    color: var(--bs-primary) !important;
}

/* Alterar cor do botão de usuário quando hover */
#page-header-user-dropdown:hover {
    color: var(--bs-primary) !important;
}

/* Alterar cor dos itens do dropdown do usuário quando hover */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(46, 125, 50, 0.1) !important;
    color: var(--bs-primary) !important;
}

/* Alterar cor do botão de notificações quando hover */
.btn.noti-icon:hover {
    color: var(--bs-primary) !important;
}

/* Alterar cor do ícone de barras quando hover */
.btn.header-item:hover {
    color: var(--bs-primary) !important;
}

.logo-dark {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
}

.logo-dark img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
}

.navbar-brand-box .logo-dark img {
    transform: scale(1.9); /* Aumenta 1.5x o tamanho */
    transform-origin: left center; /* Mantém alinhamento à esquerda */
    margin-right: 10px; /* Compensa o aumento */
}

.navbar-brand-box {
    padding: 0.5rem 1rem !important; /* Espaçamento adequado */
    background-color: transparent !important; /* Remove fundo que pode conflitar */
}

.logo-txt {
    color: white !important; /* Cor do texto ao lado da logo */
    margin-left: 10px;
    font-weight: bold;
}

.btn-group .btn {
    margin-right: 5px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

#tabelaAdministradores th, #tabelaAdministradores td {
    vertical-align: middle;
}

/* Estilo para o botão de mostrar/ocultar senha */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
    transition: all 0.2s;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

.input-group .btn-outline-secondary i {
    font-size: 1.1rem;
}

/* Estilo para o painel expansível */
.header-expand-panel {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Estilo para o botão de expansão quando ativo */
.header-expand-button.active {
    transform: rotate(180deg);
}

/* Ajuste para o header quando expandido */
body.header-expanded {
    padding-top: 150px; /* Ajuste conforme a altura do painel */
}

/* Estilo para o header fixo */
#page-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff; /* ou a cor do seu header */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilo para o painel expansível */
.dash-content {
    position: relative;
    width: 100%;
    background: #36404a; /* ou a cor do seu painel */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: -1px; /* para ficar colado no header */
}

/* Container do header para controlar o fluxo */
.header-container {
    display: flex;
    flex-direction: column;
}

/* Ajuste para o conteúdo principal */
.main-content {
    margin-top: 0; /* Ajuste conforme necessário */
}

/* Cor do header extendido (dash-content) */
.dash-header-box, 
.dash-content {
    background-color: var(--bs-primary-dark) !important;
    color: white !important;
}

/* Cor dos textos no dash-content */
.dash-content .page-title-box h4,
.dash-content .breadcrumb-item a,
.dash-content .breadcrumb-item.active {
    color: white !important;
}

/* Cor dos itens do breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Cor dos cards dentro do dash-content */
.dash-content .card {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Cor dos textos nos cards */
.dash-content .card .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Botão de toggle */
.dash-troggle-icon {
    color: white !important;
    background-color: rgba(0, 0, 0, 0.2);
}

.dash-troggle-icon:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

