:root {
  --color-primary: #1a73e8;
  --color-secondary: #34a853;
  --color-white: #ffffff;
  --color-gray-50: #f8f9fa;
  --color-gray-100: #f0f0f0;
  --color-gray-200: #e9ecef;
  --color-gray-300: #dee2e6;
  --color-gray-700: #212529;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 15px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  --header-height: 56px;
  --footer-height: 40px;
  --container-padding: 20px;
  
  /* Breakpoints como variáveis para consistência */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--color-gray-50);
  color: var(--color-gray-700);
}

/* Garantir que o container principal funcione corretamente */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - var(--header-height, 56px));
  flex-direction: column;
  position: relative;
  padding-bottom: 60px; /* Reduzir espaço para o footer menor */
  z-index: 1;
}

/* Ajuste para o conteúdo principal */
.main-content {
  padding: var(--container-padding);
  margin-left: 0; /* Removido margin-left para não empurrar para a direita */
  margin-top: calc(var(--header-height, 56px) + 2rem); /* Espaço adequado para a navbar */
  transition: margin-left 0.3s;
  padding-bottom: 3rem;
  padding-top: 2rem; /* Reduzido padding-top */
  min-height: calc(100vh - var(--header-height, 56px) - var(--footer-height, 60px));
  z-index: 1;
  width: 100%; /* Garantir que ocupe toda a largura disponível */
}

/* Container do dashboard */
.dashboard-container {
  margin-left: 0; /* Removido margin-left */
  padding: 1rem;
  width: 100%;
}

/* Ajustes específicos para mobile */
@media (max-width: 767.98px) {
  .main-content {
    padding-bottom: 8rem !important; /* Muito mais espaço para o footer no mobile */
    padding-top: 3rem; /* Mais espaço para a navbar no mobile */
  }
  
  /* Garantir que o footer não cubra conteúdo */
  .footer {
    position: relative;
    z-index: 100;
  }
}

.container-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1 0 auto;
  padding: var(--container-padding);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 85%, black);
  transform: translateY(-1px);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.navbar {
  height: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 0 var(--container-padding);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 3000;
  pointer-events: auto;
  max-width: 60%;
  text-align: center;
}

.navbar-brand img {
  height: 40px;
  transition: transform var(--transition-normal);
}

footer {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 1rem var(--container-padding);
}

footer.footer {
  background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
  color: #fff;
  border-top: none;
}

.login-logo {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
}

.container-wrapper {
  flex: 1 0 auto;
}

/* Estilos para lista de arquivos do Google Drive */
.list-group-item {
  transition: background-color 0.2s;
}

/* Estilos para upload de arquivos grandes */
.upload-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.upload-info h6 {
  color: #1565c0;
  margin-bottom: 0.5rem;
}

.file-size-info {
  font-size: 0.85rem;
  color: #666;
}

.file-size-large {
  color: #ff9800;
  font-weight: 500;
}

.file-size-very-large {
  color: #f44336;
  font-weight: 600;
}

/* Estilos para alertas de upload */
.alert-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Estilos para botões de upload com arquivos grandes */
.btn-upload-large {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border: none;
  color: white;
  font-weight: 600;
}

.btn-upload-very-large {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  border: none;
  color: white;
  font-weight: 600;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.list-group-item a {
  color: #333;
  text-decoration: none; /* Remove o sublinhado padrão */
}

.list-group-item a:hover {
  color: #0d6efd;
  text-decoration: underline; /* Adiciona sublinhado no hover */
}

.bi-folder {
  color: #ffc107; /* Cor amarela/dourada para pastas */
}

.bi-file-earmark {
  color: #17a2b8; /* Cor azul/turquesa para arquivos */
}

.pagination {
  margin-bottom: 2rem;
}

.page-link {
  color: #28a745;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-item.active .page-link {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.page-link:hover {
  color: #1e7e34;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* Adicionar mais breakpoints para ajustes finos */
@media (max-width: 992px) {
  :root {
    --container-padding: 18px;
  }
  
  .card:hover {
    transform: translateY(-3px); /* Menor movimento em telas médias */
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
    --header-height: 50px;
    --footer-height: 50px;
  }
  
  .navbar-brand span {
    display: none;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  .card:hover {
    transform: translateY(-2px); /* Movimento ainda menor em telas pequenas */
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 12px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
  }
  
  body {
    font-size: 14px;
  }
  
  .btn {
    padding: 0.4rem 0.75rem;
  }
  
  .card:hover {
    transform: none; /* Remover transformação em telas muito pequenas */
  }
  
  .navbar-container {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }
  
  .navbar-brand {
    max-width: 40%;
    font-size: 0.8rem;
  }
  
  #sidebarToggle {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    padding: 0.4rem;
  }
}

footer, .footer {
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 100;
  background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
  color: var(--color-white);
  padding: 1rem var(--container-padding);
}

/* Estilos específicos para o footer */
.footer {
  background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
  border-top: none;
  padding: 0.5rem 0; /* Reduzir padding vertical */
}

.footer .container {
  max-width: 1200px;
}

.footer .contact-info a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer .contact-info a:hover {
  opacity: 0.8;
}

.footer .footer-links a {
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.footer .footer-links a:hover {
  opacity: 0.8;
}

/* Ajuste para o logo no footer */
.footer img {
  filter: brightness(0) invert(1); /* Torna o logo branco */
}

/* Footer mais compacto no mobile */
@media (max-width: 768px) {
  .footer {
    padding: 0.25rem 0;
  }
  
  .footer .container {
    padding: 0.5rem 1rem;
  }
  
  .footer .fw-bold.small {
    font-size: 0.8rem;
  }
  
  .footer .small {
    font-size: 0.7rem;
  }
  
  .footer .contact-info a {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  
  .footer .footer-links a {
    font-size: 0.65rem;
    margin-right: 0.5rem;
  }
  
  .footer img {
    height: 16px !important;
  }
}

/* Garante que a navbar fique acima do overlay do modal */
/*
.navbar,
.header,
#main-navbar {
  z-index: 1061 !important;
  position: relative;
}
*/

/* Garante que o modal não grude no topo */
.modal-dialog {
  margin-top: 60px;
}

/* Sombra e borda arredondada para destacar o modal */
.modal-content {
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-radius: 10px;
}

/* Ajusta o overlay do modal para não cobrir a navbar */
.modal-backdrop {
  /* top: 60px !important; */
  z-index: 1050 !important;
}



/* CSS removido - substituído pelo sidebar universal acima */

/* CSS removido - substituído pelo sidebar universal acima */

/* Navbar container para alinhamento flex */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  height: 100%;
  padding: 0 1rem;
  gap: 1rem;
}

/* Estilos específicos para o botão hamburger */
#sidebarToggle {
  z-index: 3002;
  position: relative;
  cursor: pointer;
  order: 1;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  margin-right: auto;
}

#sidebarToggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

#sidebarToggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
  outline: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 3000;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

.navbar-brand:hover {
  text-decoration: none;
  color: inherit;
}

/* CSS específico da página de configurações removido para padronizar com outras páginas */

/* CSS removido - substituído pelo sidebar universal acima */

/* CSS removido - substituído pelo sidebar universal acima */

/* CSS removido - substituído pelo padrão universal acima */

/* CSS UNIVERSAL para TODAS as páginas - independente da classe */
.dashboard-container {
  margin-left: 0 !important;
  padding: 1rem;
  width: 100%;
}

.dashboard-container .main-content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Desktop: ajustar todas as páginas */
@media (min-width: 992px) {
  .dashboard-container .main-content {
    margin-left: 250px !important; /* Espaço para a sidebar */
    width: calc(100% - 250px) !important; /* Largura ajustada */
  }
  
  /* Garantir que todas as páginas tenham o espaçamento correto */
  .dashboard-container .main-content h1,
  .dashboard-container .main-content h2,
  .dashboard-container .main-content h3,
  .dashboard-container .main-content h4,
  .dashboard-container .main-content h5,
  .dashboard-container .main-content h6 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Ajustar espaçamento dos elementos principais em todas as páginas */
  .dashboard-container .main-content .card,
  .dashboard-container .main-content .table,
  .dashboard-container .main-content .table-responsive {
    margin-top: 1rem !important;
  }
  
  /* Ajustar botões e ações em todas as páginas */
  .dashboard-container .main-content .btn-toolbar,
  .dashboard-container .main-content .d-flex.gap-2,
  .dashboard-container .main-content .d-flex.flex-wrap.gap-2 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }
}

/* Mobile: ajustar todas as páginas */
@media (max-width: 991.98px) {
  .dashboard-container .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: calc(var(--header-height, 60px) + 0.5rem) !important; /* Reduzido de 3rem para 0.5rem */
    padding-top: 0.25rem !important; /* Reduzido de 1rem para 0.25rem */
  }
  
  .dashboard-container {
    margin-left: 0 !important;
    padding: 0.5rem !important;
    width: 100% !important;
  }
}

/* ===== PADRÃO UNIVERSAL DE ESPAÇAMENTO PARA TODAS AS PÁGINAS ===== */

/* REGRA UNIVERSAL: Todas as páginas com main-content terão espaçamento padronizado */
.main-content {
  margin-top: calc(var(--header-height, 56px) + 0.5rem) !important; /* Reduzido de 1rem para 0.5rem */
  padding-top: 0.5rem !important; /* Reduzido de 1rem para 0.5rem */
  margin-left: 0 !important;
  width: 100% !important;
}

/* Ajustes específicos para páginas com classes específicas (mantém compatibilidade) */
.admin-dashboard,
.city-admin-dashboard,
.lgpd-page,
.settings-page,
.users-page,
.documents-page,
.reports-page,
.delete-requests-page,
.employee-page {
  margin-top: calc(var(--header-height, 56px) + 0.5rem) !important; /* Reduzido de 1rem para 0.5rem */
  padding-top: 0.5rem !important; /* Reduzido de 1rem para 0.5rem */
  margin-left: 0 !important;
  width: 100% !important;
}

/* ===== RESPONSIVIDADE UNIVERSAL ===== */

/* Mobile: Todas as páginas */
@media (max-width: 991.98px) {
  .main-content {
    margin-top: calc(var(--header-height, 60px) + 0.25rem) !important; /* Reduzido para 0.25rem */
    padding-top: 0.25rem !important; /* Reduzido para 0.25rem */
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Ajustes específicos para páginas com classes */
  .admin-dashboard,
  .city-admin-dashboard,
  .lgpd-page,
  .settings-page,
  .users-page,
  .documents-page,
  .reports-page,
  .delete-requests-page,
  .employee-page {
    margin-top: calc(var(--header-height, 60px) + 0.25rem) !important; /* Reduzido para 0.25rem */
    padding-top: 0.25rem !important; /* Reduzido para 0.25rem */
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Garantir que elementos não fiquem debaixo da navbar */
  .card,
  .table,
  .table-responsive {
    margin-top: 0.25rem !important; /* Reduzido para 0.25rem */
  }
  
  /* Ajustar espaçamento dos elementos principais */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 0.25rem !important; /* Reduzido para 0.25rem */
    margin-bottom: 0.5rem !important; /* Reduzido para 0.5rem */
  }
  
  /* Ajustar botões e ações */
  .btn-toolbar,
  .d-flex.gap-2 {
    margin-top: 0.25rem !important; /* Reduzido para 0.25rem */
    margin-bottom: 0.5rem !important; /* Reduzido para 0.5rem */
  }
  
  /* Padronizar cards da dashboard admin no mobile */
  .stats-cards .col-md-3,
  .stats-cards .col-lg-3,
  .stats-cards .col-xl-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .stats-cards .card {
    height: 120px !important; /* Altura fixa para todos os cards */
    width: 100% !important; /* Largura fixa */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.75rem 0.5rem !important;
    overflow: hidden !important; /* Evita quebra de layout */
  }
  
  .stats-cards .card-body {
    padding: 0.5rem 0.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
  }
  
  .stats-cards .card-title {
    font-size: 0.8rem !important; /* Tamanho menor para caber títulos longos */
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    max-height: 2.2em !important; /* Altura máxima para 2 linhas */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    /* Adicionar propriedade padrão para compatibilidade */
    line-clamp: 2 !important;
  }
  
  .stats-cards .card-text {
    font-size: 1.4rem !important; /* Tamanho uniforme para números */
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important; /* Não diminui o número */
  }
  
  /* Ajustar grid para mobile - 2x2 */
  .stats-cards .row {
    margin: 0 !important;
  }
  
  .stats-cards .col-md-3 {
    padding: 0 0.25rem !important;
  }
  
  /* Mobile pequeno - ajustes adicionais */
  @media (max-width: 575.98px) {
    .stats-cards .card {
      height: 100px !important; /* Altura menor para telas muito pequenas */
      padding: 0.5rem 0.25rem !important;
      width: 100% !important;
    }
    
    .stats-cards .card-body {
      padding: 0.4rem 0.2rem !important;
      width: 100% !important;
    }
    
    .stats-cards .card-title {
      font-size: 0.75rem !important; /* Título ainda menor */
      margin-bottom: 0.2rem !important;
      max-height: 2em !important; /* Altura máxima para 2 linhas */
      line-height: 1 !important;
      /* Adicionar propriedade padrão para compatibilidade */
      line-clamp: 2 !important;
    }
    
    .stats-cards .card-text {
      font-size: 1.2rem !important; /* Número menor */
      flex-shrink: 0 !important;
    }
    
    .stats-cards .col-md-3 {
      padding: 0 0.15rem !important; /* Padding menor */
    }
  }
}

/* Desktop: Todas as páginas */
@media (min-width: 992px) {
  .main-content {
    margin-top: calc(var(--header-height, 56px) + 0.25rem) !important; /* Reduzido de 0.75rem para 0.25rem */
    padding-top: 0.5rem !important; /* Reduzido de 1rem para 0.5rem */
  }
  
  /* Ajustes específicos para páginas com classes */
  .admin-dashboard,
  .city-admin-dashboard,
  .lgpd-page,
  .settings-page,
  .users-page,
  .documents-page,
  .reports-page,
  .delete-requests-page,
  .employee-page {
    margin-top: calc(var(--header-height, 56px) + 0.25rem) !important; /* Reduzido de 0.75rem para 0.25rem */
    padding-top: 0.5rem !important; /* Reduzido de 1rem para 0.5rem */
  }
}

/* ===== AJUSTES ESPECÍFICOS PARA ELEMENTOS ===== */

/* Garantir que o primeiro título de cada página tenha espaçamento correto */
.main-content > h1:first-child,
.main-content > h2:first-child,
.main-content > h3:first-child,
.main-content > h4:first-child,
.main-content > h5:first-child,
.main-content > h6:first-child {
  margin-top: 0 !important;
  margin-bottom: 1rem !important; /* Reduzido de 1.5rem para 1rem */
}

/* Ajustar espaçamento dos elementos principais em todas as páginas */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
  margin-top: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
  margin-bottom: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
}

/* Ajustar cards e tabelas */
.main-content .card,
.main-content .table,
.main-content .table-responsive {
  margin-top: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
  margin-bottom: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
}

/* Ajustar botões e ações */
.main-content .btn-toolbar,
.main-content .d-flex.gap-2,
.main-content .d-flex.flex-wrap.gap-2 {
  margin-top: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
  margin-bottom: 0.75rem !important; /* Reduzido de 1rem para 0.75rem */
}

/* ===== AJUSTES ESPECÍFICOS PARA DASHBOARD ===== */

/* Seção LGPD mais compacta */
.admin-dashboard .row.mb-3 {
  margin-bottom: 1rem !important; /* Reduzido de 1.5rem para 1rem */
}

.admin-dashboard .col-md-2 {
  padding: 0 0.5rem !important; /* Reduzido padding horizontal */
}

.admin-dashboard .card {
  margin-bottom: 0.75rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .card-body {
  padding: 0.75rem !important; /* Reduzido padding interno */
}

.admin-dashboard .card-body h4 {
  font-size: 1.25rem !important; /* Reduzido tamanho da fonte */
  margin-bottom: 0.25rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .card-body small {
  font-size: 0.75rem !important; /* Reduzido tamanho da fonte */
}

/* Tabela LGPD mais compacta */
.admin-dashboard .table {
  margin-bottom: 0.75rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .table th,
.admin-dashboard .table td {
  padding: 0.5rem 0.75rem !important; /* Reduzido padding das células */
  font-size: 0.875rem !important; /* Reduzido tamanho da fonte */
}

.admin-dashboard .table th {
  font-size: 0.8rem !important; /* Reduzido tamanho da fonte dos headers */
  font-weight: 600 !important;
}

/* Estatísticas LGPD mais compactas */
.admin-dashboard .lgpd-stats {
  padding: 1rem !important; /* Reduzido padding */
  margin-bottom: 1rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .lgpd-stats h3 {
  font-size: 1.1rem !important; /* Reduzido tamanho da fonte */
  margin-bottom: 0.75rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .lgpd-stats .row {
  margin: 0 !important;
}

.admin-dashboard .lgpd-stats .col-md-3 {
  padding: 0 0.25rem !important; /* Reduzido padding horizontal */
}

.admin-dashboard .lgpd-stats .card {
  margin-bottom: 0.5rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .lgpd-stats .card-body {
  padding: 0.5rem !important; /* Reduzido padding interno */
}

.admin-dashboard .lgpd-stats .card-title {
  font-size: 0.75rem !important; /* Reduzido tamanho da fonte */
  margin-bottom: 0.25rem !important; /* Reduzido margin-bottom */
}

.admin-dashboard .lgpd-stats .card-text {
  font-size: 1.25rem !important; /* Reduzido tamanho da fonte */
  margin-bottom: 0 !important;
}

/* Responsividade para LGPD */
@media (max-width: 768px) {
  .admin-dashboard .col-md-2 {
    padding: 0 0.25rem !important;
  }
  
  .admin-dashboard .card-body {
    padding: 0.5rem !important;
  }
  
  .admin-dashboard .lgpd-stats {
    padding: 0.75rem !important;
  }
  
  .admin-dashboard .lgpd-stats .card-body {
    padding: 0.4rem !important;
  }
}

/* ===== SIDEBAR UNIVERSAL ===== */

/* Sidebar base */
  .sidebar {
  position: fixed !important;
  left: 0 !important;
  top: var(--header-height, 56px) !important;
  width: 250px !important;
  height: calc(100vh - var(--header-height, 56px)) !important; /* Altura total da tela menos header */
  background-color: #ffffff !important; /* Fundo branco sólido */
  border-right: 1px solid #dee2e6;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
    transform: translateX(-100%);
}

/* Sidebar ativo */
  .sidebar.active {
  transform: translateX(0);
}

/* Conteúdo do sidebar */
.sidebar-content {
  height: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background-color: #ffffff; /* Fundo branco para todo o conteúdo */
}

/* Usuário no topo do sidebar */
.sidebar-user-top {
  padding: 0.75rem 1rem; /* Reduzido padding */
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 0.75rem; /* Reduzido margin */
}

.sidebar-user-top i {
  font-size: 2rem;
  color: #0d6efd;
}

/* Navegação do sidebar */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar .nav {
  flex: 1;
  padding-bottom: 0;
}

/* Links do sidebar */
.sidebar .nav-link {
  color: #495057;
  padding: 0.5rem 1rem; /* Reduzido padding vertical */
  border-radius: 0.375rem;
  margin-bottom: 0.15rem; /* Reduzido margin entre itens */
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Remover bullet points de qualquer li solto */
.sidebar li {
  list-style: none;
}

.sidebar .nav-item {
  list-style: none;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.sidebar .nav-link.active {
  background-color: #0d6efd;
  color: white;
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar .nav-link.active i {
  color: white;
}

/* Cabeçalhos do sidebar */
.sidebar-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  margin: 1rem 0 0.5rem 0;
  padding: 0 1rem;
}

/* Ações do usuário no sidebar */
.sidebar-user-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #495057;
  font-weight: 500;
}

.sidebar-user i {
  font-size: 1.25rem;
  color: #0d6efd;
}

.sidebar-user-actions .btn-link {
  color: #6c757d;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
    width: 100%;
  text-align: left;
}

.sidebar-user-actions .btn-link.text-danger {
  color: #dc3545;
}

.sidebar-user-actions .btn-link:hover {
  background-color: #e9ecef;
  color: #495057;
}

.sidebar-user-actions .btn-link.text-danger:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Backdrop para mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.sidebar-backdrop.show {
    display: block;
}

/* Botão toggle do sidebar */
  #sidebarToggle {
    display: none;
}

/* ===== RESPONSIVIDADE DO SIDEBAR ===== */

/* Desktop: sidebar sempre visível e ocupando toda altura */
@media (min-width: 992px) {
  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: var(--header-height, 56px) !important;
    transform: translateX(0) !important;
    height: calc(100vh - var(--header-height, 56px)) !important; /* Altura total da tela menos header */
    bottom: 0 !important; /* Estende até o footer */
  }
  
  /* Ajustar conteúdo principal para dar espaço ao sidebar */
  .main-content {
    margin-left: 250px !important; /* Espaço para a sidebar */
    width: calc(100% - 250px) !important;
  }
  
  .dashboard-container .main-content {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
  }
}

/* Mobile: sidebar com altura limitada */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: var(--header-height, 60px) !important; /* Começa logo abaixo da navbar */
    transform: translateX(-100%) !important;
    height: calc(100vh - var(--header-height, 60px)) !important; /* Altura total da tela menos header */
    bottom: 0 !important; /* Estende até o final da tela */
    overflow-y: auto !important; /* Scroll interno se necessário */
    z-index: 2000 !important; /* Z-index alto para ficar acima de tudo */
    background-color: #ffffff !important; /* Fundo branco sólido no mobile */
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  /* Reduzir espaçamento no mobile */
  .sidebar .nav-link {
    padding: 0.4rem 1rem !important; /* Padding ainda menor no mobile */
    margin-bottom: 0.1rem !important; /* Margin menor no mobile */
  }
  
  .sidebar-user-top {
    padding: 0.5rem 1rem !important; /* Padding menor no mobile */
    margin-bottom: 0.5rem !important; /* Margin menor no mobile */
  }
  
  /* Garantir que o fundo branco cubra toda a área da sidebar */
  .sidebar-content {
    background-color: #ffffff !important;
    min-height: 100% !important;
  }
  
  /* Conteúdo principal sem margem no mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  .dashboard-container .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Footer fica atrás da sidebar quando ela estiver ativa */
  .footer {
    z-index: 1 !important; /* Z-index baixo para ficar atrás da sidebar */
  }
  
  /* Forçar footer a ficar atrás da sidebar no mobile */
  footer, .footer {
    z-index: 1 !important; /* Z-index baixo para ficar atrás da sidebar */
    position: relative !important; /* Garantir que não seja fixed */
  }
  
  /* Mostrar botão toggle no mobile */
  #sidebarToggle {
    display: block;
  }
}

/* Footer removido - voltando ao estado anterior */