/* Estilos para o header do site principal, excluindo admin */
body:not([class*="admin"]):not([id*="admin"]):not(:has(.admin-dashboard)) header,
header:not([class*="admin"]):not(:has(.admin-dashboard)):not(:has(.ombro-admin)),
header[class*="sticky"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  min-height: 70px !important;
  background-color: #ffffff !important;
  transition: all 0.3s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transform: translateZ(0) !important; /* Força o hardware acceleration */
  will-change: transform !important; /* Melhora performance */
}

/* Estado do header quando há scroll */
body:not([class*="admin"]):not([id*="admin"]) header.scrolled,
header:not([class*="admin"]):not(:has(.admin-dashboard)).scrolled {
  min-height: 70px !important; /* Header mais compacto quando com scroll */
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Regras de padding para conteúdo principal removidas para evitar espaço em branco indesejado */

/* Remover explicitamente qualquer padding do admin */
body[class*="admin"] main,
body:has(.admin-dashboard) main,
body:has(.admin-header) main,
body[id*="admin"] main {
  padding-top: 0 !important;
}
