/* V7 Tech | osTicket Client Portal theme v1.0.0
   Scope: public-facing client pages only. Staff dashboard intentionally unchanged. */
:root {
  --v7-navy: #09192e;
  --v7-navy-2: #112b49;
  --v7-blue: #1679c5;
  --v7-bright: #32a7e8;
  --v7-text: #17283d;
  --v7-muted: #5d6e80;
  --v7-border: #dfe8f0;
  --v7-paper: #fff;
  --v7-bg: #f3f7fa;
  --v7-radius: 14px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--v7-bg) !important;
  color: var(--v7-text) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  line-height: 1.55;
  margin: 0;
}
/* Retain osTicket's layout and behavior, but let the container breathe. */
#container, #wrapper, #main, #content, #header, #nav, #footer {
  box-sizing: border-box;
}
#container, #wrapper {
  width: min(1160px, calc(100% - 32px)) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#container, #wrapper { background: transparent !important; box-shadow: none !important; }
#header {
  position: relative;
  min-height: 88px !important;
  padding: 17px 25px !important;
  border: 0 !important;
  background: linear-gradient(112deg, var(--v7-navy) 0%, var(--v7-navy-2) 78%) !important;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 9px 22px rgba(9,25,46,.13);
  color: #fff;
}
#header a, #header a:visited, #header #info, #header #info a { color: #fff !important; }
#header a:hover { color: #a9dfff !important; }
#header #logo { max-width: 250px; height: auto; }
#header #logo img, #header img { max-width: 100%; height: auto; }
#header #info { font-size: 13px; }
#nav {
  background: #fff !important;
  border: 1px solid var(--v7-border) !important;
  border-top: 0 !important;
  border-radius: 0 0 10px 10px;
  min-height: 48px;
  padding: 5px 16px !important;
  box-shadow: 0 5px 18px rgba(19,47,76,.04);
}
#nav a, #nav li a {
  display: inline-block;
  color: var(--v7-navy-2) !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  padding: 9px 13px !important;
  background: transparent !important;
}
#nav a:hover, #nav li.active a, #nav .active a, #nav a.active {
  background: #eaf5fd !important;
  color: #0b66ac !important;
}
#content {
  background: var(--v7-paper) !important;
  border: 1px solid var(--v7-border) !important;
  border-radius: var(--v7-radius);
  padding: clamp(22px, 3.5vw, 42px) !important;
  min-height: 360px;
  margin-top: 22px !important;
  box-shadow: 0 14px 35px rgba(20,46,70,.055);
}
h1, h2, h3, h4, .headline { color: var(--v7-navy) !important; font-family: inherit !important; letter-spacing: -.025em; }
h1 { font-size: clamp(27px, 3vw, 36px) !important; font-weight: 750 !important; }
h2 { font-size: clamp(22px, 2.5vw, 27px) !important; font-weight: 725 !important; }
h3 { font-size: 19px !important; font-weight: 700 !important; }
p, .muted, .faded { line-height: 1.65; }
a { color: #116fb5; }
a:hover { color: #075082; }
/* Portal landing actions: preserve original links and keyboard focus. */
#landing_page, #landing, .landing-page { width: 100%; }
#landing_page .main-content, #landing_page .sidebar { max-width: 100%; }
#landing_page .info { color: var(--v7-muted); }
#landing_page .button, #landing_page a.button, #landing_page .action-button,
#content a.button, #content input[type=submit], #content button[type=submit],
#content .button.primary, #content input[type=button], #content button:not(.ui-button) {
  background: var(--v7-blue) !important;
  color: #fff !important;
  border: 1px solid var(--v7-blue) !important;
  border-radius: 9px !important;
  padding: 10px 18px !important;
  font-family: inherit;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(22,121,197,.13);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
#content .button:hover, #content input[type=submit]:hover,
#content button[type=submit]:hover, #landing_page a.button:hover {
  background: #0b629f !important;
  border-color: #0b629f !important;
  box-shadow: 0 6px 14px rgba(22,121,197,.22);
}
#content a:focus-visible, #content button:focus-visible, #content input:focus-visible,
#content select:focus-visible, #content textarea:focus-visible, #nav a:focus-visible {
  outline: 3px solid #78caff !important;
  outline-offset: 2px;
}
#content input[type=text], #content input[type=email], #content input[type=password],
#content input[type=tel], #content input[type=url], #content input[type=number],
#content select, #content textarea, #content .redactor-box {
  border: 1px solid #cbd8e4 !important;
  border-radius: 8px !important;
  background-color: #fff;
  max-width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
#content input[type=text], #content input[type=email], #content input[type=password],
#content input[type=tel], #content input[type=url], #content input[type=number],
#content select { min-height: 38px; padding: 7px 10px; }
#content textarea { padding: 10px; }
#content label { color: #243c55; font-weight: 600; }
#content .required, #content .error { color: #b4233d; }
#content fieldset, #content .form_table, #content .ticket_info, #content .thread-entry,
#content .thread-body, #content .ticketlist, #content .faq, #content .category {
  border-color: var(--v7-border) !important;
}
#content table { max-width: 100%; }
#content th { background: #edf5fb !important; color: #183953 !important; }
#content td, #content th { border-color: #e6edf3 !important; }
#content .thread-entry, #content .thread-body, #content .ticket_info {
  border-radius: 9px;
}
#content .alert, #content .notice, #content .message { border-radius: 8px; }
#footer {
  color: #63778c !important;
  background: transparent !important;
  border: 0 !important;
  padding: 23px 12px 33px !important;
  text-align: center;
  font-size: 12px;
}
#footer a { color: #256eab !important; }
/* Optionally apply the usual site logo via osTicket Admin > Settings > Company > Logo.
   This stylesheet does not mask the helpdesk logo or override ticket functionality. */
@media (max-width: 760px) {
  #container, #wrapper { width: calc(100% - 16px) !important; }
  #header { padding: 16px !important; min-height: 70px !important; }
  #header #info { float: none !important; text-align: left; margin-top: 12px; }
  #nav { padding: 6px 8px !important; height: auto !important; }
  #nav a, #nav li a { padding: 9px 10px !important; }
  #content { padding: 20px 15px !important; margin-top: 14px !important; }
  #content table { display: block; overflow-x: auto; }
  #landing_page .main-content, #landing_page .sidebar { float: none !important; width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
