/* GreenSatellite: theme tweaks for ASTPP, injected by nginx (sub_filter).
   Dark mode = html.gs-dark (set by /gs-theme.js, toggled by the round button bottom-right).
   It inverts the light UI into dark gray; images are inverted back to keep their colors.
   Colors below are written for the light page, so #000 ends up light after inversion.
   Remove the sub_filter lines in /etc/nginx/conf.d/astpp.conf to turn it all off. */
html.gs-dark {
  filter: invert(0.87) hue-rotate(180deg);
  background: #fff;
}
html.gs-dark img, html.gs-dark video, html.gs-dark picture, html.gs-dark canvas,
html.gs-dark iframe, html.gs-dark embed, html.gs-dark object,
html.gs-dark [style*="background-image"], html.gs-dark .gs-no-invert {
  filter: invert(1) hue-rotate(180deg);
}

/* Slightly larger text everywhere. */
body {
  zoom: 1.1;
}

/* Top menu: bold and brighter. */
.mainmenu .navbar-nav > .nav-item > .nav-link {
  font-weight: 700;
  color: #000 !important;
}

/* Chart axis numbers and legends: high contrast. */
.highcharts-axis-labels text,
.highcharts-axis-labels span,
.highcharts-axis-title,
.highcharts-legend-item text {
  fill: #000 !important;
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Theme toggle button. */
#gs-theme-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #b8bec8;
  background: #fff;
  color: #333;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
#gs-theme-btn:hover {
  background: #eef1f5;
}
