/* Estilos adicionais para páginas logadas */
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #f9fafb);
  border: 1px solid #d1d5db;
  padding: 4px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.profile-button:hover {
  background: #f3f4f6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.profile-button:focus {
  outline: 2px solid #53aa51;
  outline-offset: 2px;
}
.profile-button img, .profile-button svg {
  width: 28px;
  height: 28px;
  display: block;
}
.header-right-logged {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Ajuste de alinhamento para reservar espaço do menu lateral nas páginas logadas */
body.logged header {
  padding-left: 100px; /* 80px menu + 20px respiro */
}
/* Badge de usuário opcional */
.user-badge {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  background: #53aa51;
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

/* Dropdown de perfil usando <details> */
.profile-menu {
  position: relative;
}
.profile-menu > summary {
  list-style: none;
  cursor: pointer;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu[open] > summary .profile-button { background:#f3f4f6; }
.profile-dropdown {
  position: absolute;
  top: 54px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 2500;
}
.profile-dropdown a, .profile-dropdown button {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 16px;
  text-align: left;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2b2d31;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.profile-dropdown a:hover, .profile-dropdown button:hover {
  background:#f3f4f6;
}
.logout-item { color:#dc2626; }
.logout-item:hover { background:#fee2e2; }
