/* MMMD Service Desk theme for the main Zammad app (legacy desktop UI).
   Brand: ministry green #0b4b25 (brand kit) / #088119 (mmmd.gov.zm),
   copper-orange #d9691e. Installed to /opt/zammad/public/assets/ and linked
   from layouts/application.html.erb after the main stylesheet
   (branding/reapply-customisations.sh). */

:root {
  /* primary surfaces: header + primary buttons in ministry green */
  --header-primary: #0b4b25;
  --button-primary-background: #0b4b25;
  --button-primary-background-active: #073619;
  --text-link: #0b6b30;
  --text-nav: #0b6b30;
  /* selection/focus accents in ministry orange */
  --highlight: #d9691e;
  --background-highlight: #fdeee2;
  --border-highlight: #e8a56b;
  --shadow-highlight: #f7dcc3;
  /* semantic states aligned with the brand family */
  --supergood-color: #0b6b30;
  --ok-color: #d9691e;
  /* loading/backdrop sheen in green */
  --backdrop-clue-start: hsla(140, 68%, 20%, 0.1);
  --backdrop-clue-end: hsla(140, 68%, 20%, 0.9);

  /* navigation sidebar + dark chrome in deep ministry green */
  --background-tertiary: #0c3a1f;
  --background-quaternary: #072815;
  --background-active: #0c3a1f;
  --menu-background-primary: #072815;
  --menu-background-secondary: #0c3a1f;
  --menu-background-active: #146b36;
  --menu-background-primary-hover: hsla(140, 60%, 4%, 0.45);
  --menu-switch-background: #041a0d;
  --menu-switch-pointer: #0c3a1f;
  --menu-close-tab-background: #0c3a1f;
  --menu-text: #c5d6cb;
  --menu-icon: #7fa38c;
  --menu-icon-secondary: #3f6b4f;

  /* login / password reset / sign-up screens */
  --fullscreen-background: #0b4b25 url(/assets/mmmd-login-bg.svg?v=2d7b28feff) center / cover no-repeat fixed;
  --fullscreen-text: #d3e3d8;
  --fullscreen-text-link: #ffffff;
  --fullscreen-text-muted: hsla(0, 0%, 100%, 0.18);
}

/* dark mode: Zammad redefines the palette on html[data-theme=dark] */
html[data-theme=dark] {
  --button-primary-background: #146b36;
  --button-primary-background-active: #0b4b25;
  --text-link: #5cc683;
  --text-nav: #5cc683;
  --highlight: #e8823a;
  --background-highlight: hsl(25, 45%, 24%);
  --border-highlight: #d9691e;
  --shadow-highlight: hsl(25, 40%, 32%);
  --supergood-color: #2e9e57;
  --ok-color: #e8823a;
  --background-tertiary: #0a2416;
  --background-quaternary: #061a0f;
  --background-active: #146b36;
  --menu-background-primary: #061a0f;
  --menu-background-secondary: #0a2416;
  --menu-background-active: #146b36;
  --fullscreen-background: #0b4b25 url(/assets/mmmd-login-bg.svg?v=2d7b28feff) center / cover no-repeat fixed;
}

/* --- login & other full-screen pages --- */
.login, .reset_password, .request_admin_password_auth, .signup,
.fullscreen {
  background: var(--fullscreen-background);
}
/* hide the "Log in to <fqdn>" subtitle line */
.login.fullscreen .fullscreen-body > p:first-child { display: none; }
/* hide the "Powered by Zammad" footer (login + auth pages) */
.poweredBy { display: none; }
/* login card: rounded, lifted, orange top rule */
.fullscreen .hero-unit {
  border-radius: 10px;
  border-top: 4px solid #d9691e;
  box-shadow: 0 18px 40px rgba(2, 20, 10, 0.45);
}
/* ministry identification under the login card */
.login.fullscreen .fullscreen-body::after {
  content: "Ministry of Mines and Minerals Development \00B7  Republic of Zambia";
  display: block;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.55);
}
