/* Apalala skin for osTicket — client portal.
   Tokens and fonts follow the apalala.be design system (teal / orange, Poppins + Roboto Flex). */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Flex"; src: url("fonts/roboto-flex-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --a-teal-950: #10303A;
  --a-teal-800: #1A4E5A;
  --a-teal-700: #23545F;
  --a-teal-400: #467082;
  --a-teal-200: #9DC9DC;
  --a-orange-400: #F19A3E;
  --a-orange-600: #E36414;
  --a-lime-400: #A3D948;
  --a-paper: #F7F5F0;
  --a-mist: #F5F7FA;
  --a-haze: #E8EFF2;
  --a-line: #E3EAEE;
  --a-ink: #1F2937;
  --a-gray-600: #4B5563;
  --a-head: "Poppins", Arial, sans-serif;
  --a-body: "Roboto Flex", "Segoe UI", Arial, sans-serif;
  --a-shadow: 0 1px 2px rgba(16,48,58,.06), 0 8px 24px rgba(16,48,58,.08);
}

html { background: var(--a-mist); }
body {
  background: var(--a-mist) !important;
  font-family: var(--a-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--a-ink);
}
body, input, select, textarea { font-family: var(--a-body); color: var(--a-ink); }

body h1, body h2, body h3, body h4, body h5 { font-family: var(--a-head) !important; color: var(--a-teal-800); font-weight: 600; line-height: 1.2; }
a, a:visited { color: var(--a-teal-400); }
a:hover { color: var(--a-orange-600); }

/* Page frame: full-width teal header, white card below */
#container {
  width: auto;
  max-width: 1020px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}
#header {
  height: auto;
  min-height: 56px;
  margin: 0;
  padding: 12px 24px;
  background: var(--a-teal-800);
  box-shadow: 0 0 0 100vmax var(--a-teal-800);
  clip-path: inset(0 -100vmax);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}
#header #logo { height: auto; display: block; }
#header #logo img { max-height: 44px; max-width: 280px; width: auto; height: auto; }
#header .valign-helper { display: none; }
#header p, #header p a { color: #fff; }
#header p { width: auto; margin: 0; padding: 0; text-align: right; font-size: 14px; }
#header p a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
#header p a:hover { color: var(--a-orange-400); border-bottom-color: var(--a-orange-400); }

/* Navigation */
#nav {
  margin: 0;
  padding: 0 12px;
  height: auto;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  box-shadow: none;
  white-space: normal;
}
#nav li a {
  height: auto;
  line-height: 1;
  padding: 16px 16px 14px 36px;
  margin: 0;
  border-radius: 0;
  font-family: var(--a-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--a-teal-800);
  background-position: 12px 50%;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
#nav li a.active, #nav li a:hover { background-color: transparent; color: var(--a-teal-800); border-bottom-color: var(--a-orange-400); }
#nav li a:hover { color: var(--a-orange-600); }

/* Content card */
#content {
  background: #fff;
  margin: 0;
  padding: 32px 36px 40px;
  min-height: 360px;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--a-shadow);
}
hr { background: var(--a-line); }

/* Buttons */
.button, .button:visited, .green.button, .green.button:visited, .blue.button, .blue.button:visited,
input[type=submit], input[type=button], input[type=reset], button.button {
  background-color: var(--a-orange-400);
  color: var(--a-teal-950);
  font-family: var(--a-head);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  text-shadow: none;
  box-shadow: none;
}
.button:hover, .green.button:hover, .blue.button:hover,
input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover { background-color: var(--a-orange-600); color: #fff; }
input[type=reset], input[type=button]:not([type=submit]) { background-color: var(--a-haze); color: var(--a-teal-800); }

/* Secondary action (green in stock osTicket) uses the deep teal */
.green.button, .green.button:visited { background-color: var(--a-teal-800); color: #fff; }
.green.button:hover { background-color: var(--a-teal-700); color: #fff; }

/* Landing page */
#landing_page #new_ticket, #landing_page #check_status {
  background-image: none;
  width: auto;
  max-width: none;
  padding: 14px 24px;
  margin-top: 0;
  margin-bottom: 14px;
  display: block;
  border-radius: 14px;
  font-size: 16px;
}
#landing_page #new_ticket { background-color: var(--a-orange-400); color: var(--a-teal-950); }

#landing_page h1 { font-size: 2rem; }

/* Forms */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=tel],
select, textarea {
  border: 1px solid #cdd8de;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--a-teal-200); border-color: var(--a-teal-400); }
form fieldset, .form-header { border-color: var(--a-line); }
table.list, table.form_table { border-color: var(--a-line); }
table.list thead th, table.list thead th a { background: var(--a-haze); color: var(--a-teal-800); font-family: var(--a-head); }

/* Messages */
#msg_notice, #msg_warning, #msg_error { border-radius: 8px; border-width: 1px; }
#msg_notice { background: #eef7e0; border-color: var(--a-lime-400); color: var(--a-teal-950); }

/* Footer */
#footer { margin: 24px 0 36px; color: var(--a-gray-600); font-size: 12px; }
#footer a { color: var(--a-gray-600); }
#footer #poweredBy { opacity: .55; }
