/* =========================================================
   TMU – osTicket 1.18 Client Portal (FINAL, CLEAN)
   Built directly from live TMU HelpDesk DOM
   ========================================================= */

:root {
  --tmu-blue: #003594;
  --tmu-navy: #041e42;
  --tmu-bg: #f5f7fa;
  --tmu-surface: #ffffff;
  --tmu-border: #d1d5db;
  --tmu-muted: #6b7280;
  --tmu-text: #111827;
  --tmu-radius: 10px;
  --tmu-radius-sm: 8px;
  --tmu-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  --tmu-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
}

/* ---------- Base ---------- */
body {
  font-family: var(--tmu-font) !important;
  background: var(--tmu-bg) !important;
  color: var(--tmu-text) !important;
}

/* ---------- Header ---------- */
#header {
  background: var(--tmu-blue) !important;
  border-bottom: 3px solid var(--tmu-navy) !important;
  min-height: 72px;
  padding: 14px 24px !important;
  overflow: hidden;
}

#logo {
  float: left;
  line-height: 0;
}

#logo .valign-helper {
  display: none !important;
}

#logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* white logo on blue */
}

/* Sign in */
#header .pull-right a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
}
#header .pull-right a:hover {
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
#nav {
  clear: both;
  max-width: 1100px;
  margin: 14px auto 0 auto !important;
  padding: 6px 12px !important;
  list-style: none;
  background: #ffffff !important;
  border: 1px solid var(--tmu-border);
  border-radius: var(--tmu-radius-sm);
}

#nav li {
  display: inline-block;
  margin-right: 14px;
}

#nav a {
  padding: 6px 8px;
  font-weight: 600;
  color: var(--tmu-navy) !important;
  text-decoration: none;
  border-radius: 6px;
}

#nav a:hover,
#nav a.active {
  background: rgba(0, 53, 148, 0.08);
  color: var(--tmu-blue) !important;
}

/* ---------- Main content ---------- */
#content {
  max-width: 1100px;
  margin: 28px auto !important;
  padding: 0 20px !important;
}

/* ---------- Main content (single card) ---------- */
#landing_page {
  background: var(--tmu-surface);
  border: 1px solid var(--tmu-border);
  border-radius: var(--tmu-radius);
  box-shadow: var(--tmu-shadow);
  padding: 24px !important;
}

/* Prevent nested “cards” inside the landing page */
#landing_page .main-content,
#landing_page .thread-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Headings */
h1, h2, h3 {
  color: var(--tmu-navy) !important;
}

/* ---------- Buttons ---------- */
a.button,
a.blue.button,
a.green.button {
  background: var(--tmu-blue) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--tmu-radius-sm);
  font-weight: 700;
}

a.button:hover,
a.blue.button:hover,
a.green.button:hover {
  background: var(--tmu-navy) !important;
}

/* ---------- Forms ---------- */
input,
select,
textarea {
  border-radius: var(--tmu-radius-sm);
  border: 1px solid var(--tmu-border);
  padding: 10px 12px;
}

/* ---------- Footer ---------- */
#footer {
  margin-top: 48px;
  color: var(--tmu-muted);
  font-size: 12px;
}

/* =========================================================
   Fix nav icon tiling (house icon repeating)
   ========================================================= */

#nav a.home,
#nav a.new,
#nav a.status {
  background-repeat: no-repeat !important;
  background-position: 8px center !important;
}

/* Give the icon room so text doesn't overlap it */
#nav a.home,
#nav a.new,
#nav a.status {
  padding-left: 28px !important;
}

/* Prevent icon tiling on ALL nav items that use background icons */
#nav a {
  background-repeat: no-repeat !important;
  background-position: 8px center !important;
}

/* Only add left padding when an icon is actually present */
#nav a[style*="background"],
#nav a.home,
#nav a.new,
#nav a.status,
#nav a.tickets,
#nav a.ticket {
  padding-left: 28px !important;
}
