body {
  background-size: 50% auto !important;
  background-repeat: no-repeat !important;
  background-position: left !important;
}

/* Custom Menu (side_menu) icons in the header: white badge like the header logo, so they
   stand out from the orange/yellow background. The icons are white SVGs that Nextcloud
   inverts to black on a bright background; the badge is a pseudo element behind them. */
.cm-standardmenu .app-menu-entry a {
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.cm-standardmenu .app-menu-entry a::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* Nextcloud's translucent surface colour (follows light/dark theme); fallback = 85 % white */
  background: var(--color-main-background-blur, rgb(255 255 255 / .85));
  box-shadow: 0 1px 4px rgb(80 30 0 / .35);
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
/* icons pure white (the SVGs are white; Nextcloud's black inversion is switched off), with a
   hairline dark-orange outline so they stay visible on the light badge */
.cm-standardmenu .app-menu-entry img {
  position: relative;
  z-index: 1;
  opacity: 1 !important;
  filter: brightness(0) invert(1)
          drop-shadow(0 0 .5px #a8500f) drop-shadow(0 0 .5px #a8500f) !important;
}
.cm-standardmenu .app-menu-entry a:hover::before,
.cm-standardmenu .app-menu-entry a:focus-visible::before {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 2px 7px rgb(80 30 0 / .45);
}
.cm-standardmenu .app-menu-entry__active a::before {
  box-shadow: 0 0 0 2px #a8500f, 0 1px 4px rgb(80 30 0 / .35);
}

/* hover: only the hovered app moves up and shows its name, black on a white pill above
   everything (side_menu would move all icons and show all labels at once) */
.cm-standardmenu .app-menu-main:hover .app-menu-entry:not(:hover):not(:focus-within) img { margin-top: 0 !important; }
.cm-standardmenu .app-menu-main:hover .app-menu-entry:not(:hover):not(:focus-within) .app-menu-entry--label { opacity: 0 !important; }
.cm-standardmenu .app-menu-entry:hover a::before,
.cm-standardmenu .app-menu-entry:focus-within a::before { top: calc(50% - 8px); }
.cm-standardmenu .app-menu-entry--label {
  color: #1d2124 !important;
  filter: none !important;
  background: #ffffff;
  border-radius: 9px;
  padding: 1px 7px;
  box-shadow: 0 1px 4px rgb(80 30 0 / .35);
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip !important;
  letter-spacing: 0 !important;
  z-index: 2;
  pointer-events: none;
}
.cm-standardmenu .app-menu-entry:hover,
.cm-standardmenu .app-menu-entry:focus-within { z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .cm-standardmenu .app-menu-entry a::before { transition: none; }
}
