.user-sidebar {
  background: #ffffff;
  width: 280px;
  height: 100vh;
  margin-top: 2vh;
  margin-left: 2vw;
  position: sticky;
  top: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.05);
  border-right: 1px solid #edf2f7;
}

/* Bloco do Perfil no Topo */
.sidebar-user-profile-wrapper {
  padding: 20px 15px;
  border-bottom: 1px solid #f3f4f6;
}

.sidebar-user-profile {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
  transition: all 0.2s;
}

.sidebar-user-profile:hover {
  background: #f9fafb;
}

.sidebar-user-profile a.profile {
  text-decoration: none !important;
  display: block;
}

.user-name {
  color: #111827;
  font-size: 14px;
  max-width: 150px;
}

.user-email {
  color: #6b7280;
  font-size: 12px;
  max-width: 150px;
}

.user-sidebar ul.nav {
  padding: 15px 12px;
  flex-direction: column !important;
}

.user-sidebar ul.nav > li {
  margin-bottom: 4px;
}

.user-sidebar ul.nav > li > a {
  color: #4b5563;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 15px !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  border: 1px solid transparent !important;
  width: 100% !important;
  left: 0 !important;
}

.user-sidebar ul.nav > li > a:hover {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
}

.user-sidebar ul.nav > li.active > a {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 217, 38, 0.2);
}

.user-sidebar ul.nav > li.active > a i {
  color: #ffffff !important;
}

.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* para o header customizado */

#customer-admin-header.navbar-default {
  /* Usa a cor primária do sistema (verde) ou um verde fixo de fallback */
  background-color: var(--primary-color, #00d926) !important;
  margin: 2vh;
  border-radius: 1vw;
  height: 60px; /* Altura fixa similar ao admin */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1030;
}

/* Container flexível para alinhar os itens */
.header-content-wrapper {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 15px;
}

/* Estilo do Botão Hambúrguer */
#customer-sidebar-toggle.toggle-button {
  color: #ffffff !important; /* Ícone branco */
  font-size: 22px;
  padding: 5px 15px 5px 0; /* Espaçamento à direita da logo */
  text-decoration: none;
  border: none;
  background: transparent;
  outline: none;
  transition: color 0.2s;
}

#customer-sidebar-toggle.toggle-button:hover {
  color: #e0e0e0 !important; /* Leve alteração no hover */
}

/* Ajustes da Logo */
.header-logo-wrapper .navbar-brand.logo {
  padding: 0;
  margin: 0;
  height: auto;
  display: flex;
  align-items: center;
}

.header-logo-wrapper img.header-logo-img {
  max-height: 35px !important; /* Ajuste conforme necessário */
  width: auto !important;
  display: block;
  margin-top: -5px; /* Ajuste fino de alinhamento vertical */
}

/* Remove estilos padrão que podem atrapalhar o alinhamento flex */
.navbar-brand.logo {
  float: none !important;
  height: auto !important;
  padding: 0 !important;
}

/* Estilo do Header */
#customer-admin-header {
  background-color: var(--primary-color, #00d926) !important;
  border: none;
  height: 63px;
  z-index: 1001;
}

/* Garante que a logo inserida pela função se ajuste ao header verde */
.header-logo-wrapper img {
  max-height: 35px !important;
  width: auto !important;
  filter: brightness(0) invert(1); /* Torna a logo escura em branca para o fundo verde */
}

/* --- Lógica de Esconder/Mostrar Sidebar --- */

@media (min-width: 768px) {
  /* Estado Normal (Aberto) */
  .user-sidebar {
    left: 2vw; /* Conforme seu CSS original */
    transition: all 0.3s ease;
  }

  #wrapper {
    transition: all 0.3s ease;
  }

  /* Estado Escondido (Quando clicado) */
  body.hide-sidebar .user-sidebar {
    transform: translateX(-350px); /* Move a sidebar para fora da tela */
    margin-left: -300px;
  }

  body.hide-sidebar #wrapper {
    margin-left: 2vw !important; /* Retorna o conteúdo para a esquerda */
    width: 96vw !important;
  }
}

/* Ajuste mobile */
@media (max-width: 767px) {
  body.hide-sidebar .user-sidebar {
    display: none;
  }
}

/* MENU ADMIN */
