/*
 * Binder Suite customer portal theme.
 * Keep this file additive so osTicket upgrades can retain vendor styles intact.
 */
:root {
  --bs-bg: #080d12;
  --bs-surface: #101821;
  --bs-surface-2: #172331;
  --bs-line: #2a3a4c;
  --bs-text: #f5f8fb;
  --bs-ink: #172331;
  --bs-muted: #607184;
  --bs-cyan: #7dd3fc;
  --bs-blue: #4da3ea;
  --bs-gold: #d6ad48;
  --bs-green: #49a77e;
  --bs-card: #f7f9fc;
  --bs-shadow: 0 28px 68px rgba(0, 0, 0, 0.38);
}

html {
  min-height: 100%;
  background: var(--bs-bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--bs-text);
  background:
    radial-gradient(circle at 14% 0%, rgba(77, 163, 234, 0.20), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgba(214, 173, 72, 0.12), transparent 28rem),
    var(--bs-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: #287eba;
}

a:hover {
  color: #155c91;
}

#container {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#header {
  position: relative;
  display: flex;
  min-height: 108px;
  height: auto;
  padding: 22px 24px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

#header #logo {
  position: relative;
  top: auto;
  left: auto;
  display: inline-flex;
  align-items: center;
  max-width: min(430px, 58vw);
  height: auto;
  padding-right: 1px;
  order: 1;
}

#header #logo::after {
  content: "Binder Suite Support";
  position: absolute;
  right: 0;
  bottom: -3px;
  color: var(--bs-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#header #logo img {
  display: block;
  width: min(360px, 54vw);
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}

#header .pull-right {
  float: none !important;
  color: #c5d0db;
  font-size: 13px;
  text-align: right;
  order: 2;
}

#header .pull-right p {
  margin: 0;
}

#header .pull-right a {
  color: var(--bs-cyan);
  font-weight: 700;
}

#nav {
  display: flex;
  height: auto;
  min-height: 52px;
  margin: 0;
  padding: 7px;
  overflow: visible;
  align-items: stretch;
  gap: 6px;
  border: 1px solid var(--bs-line);
  border-radius: 15px;
  background: rgba(16, 24, 33, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.20);
  box-sizing: border-box;
}

#nav li {
  float: none;
  margin: 0;
  padding: 0;
  background: none;
}

#nav li a {
  display: flex;
  min-height: 38px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #d9e3ec;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 120ms ease, color 120ms ease;
}

#nav li a:not(.active) {
  background-image: none !important;
}

#nav li a:hover {
  color: var(--bs-text);
  background: var(--bs-surface-3, #1d2a39);
}

#nav li.active a,
#nav li a.active {
  color: #07121b;
  background: linear-gradient(135deg, var(--bs-cyan), var(--bs-blue));
}

#content {
  min-height: 470px;
  margin: 18px 0 0;
  padding: clamp(24px, 4vw, 48px);
  overflow: visible;
  color: var(--bs-ink);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  background: var(--bs-card);
  box-shadow: var(--bs-shadow);
  box-sizing: border-box;
}

#content h1,
#content h2,
#content h3,
#content h4 {
  color: #142231;
}

#content h1 {
  margin-top: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#content h2 {
  line-height: 1.25;
}

#content hr {
  border: 0;
  border-top: 1px solid #dce4eb;
}

#landing_page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "main sidebar";
  gap: clamp(28px, 5vw, 62px);
  align-items: start;
}

#landing_page .main-content {
  grid-area: main;
  float: none;
  width: auto;
}

#landing_page .sidebar {
  grid-area: sidebar;
  float: none !important;
  width: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid #d8e2eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 35, 49, 0.09);
  box-sizing: border-box;
}

.front-page-button {
  margin: 0 0 14px;
}

.front-page-button:last-child {
  margin-bottom: 0;
}

.front-page-button a,
.front-page-button a.green,
.front-page-button a.blue {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 11px;
  color: #fff !important;
  background: linear-gradient(135deg, #238bc9, #356fbd);
  box-shadow: 0 9px 22px rgba(53, 111, 189, 0.22);
  box-sizing: border-box;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
}

.front-page-button a.green {
  background: linear-gradient(135deg, #3ba174, #287d62);
  box-shadow: 0 9px 22px rgba(40, 125, 98, 0.22);
}

.front-page-button a:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  max-width: 100%;
  border: 1px solid #b9c7d4;
  border-radius: 7px;
  background: #fff;
  box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select {
  min-height: 36px;
  padding: 6px 9px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--bs-blue);
  box-shadow: 0 0 0 3px rgba(77, 163, 234, 0.18);
  outline: none;
}

textarea,
#ticketForm textarea {
  width: 100% !important;
}

input[type="submit"],
input[type="button"],
button,
.button,
.action-button {
  border-radius: 7px;
}

input[type="submit"],
button[type="submit"],
.primary.button {
  color: #fff;
  border-color: #287fba;
  background: linear-gradient(135deg, #3f9bd8, #3476bc);
}

#content input[type="submit"],
#content button[type="submit"] {
  min-height: 38px;
  padding: 7px 15px;
  color: #fff !important;
  border: 1px solid #287fba !important;
  background: linear-gradient(135deg, #3f9bd8, #3476bc) !important;
  font-size: 14px;
  font-weight: 700;
}

#content input[type="reset"],
#content input[type="button"],
#content button:not([type="submit"]) {
  min-height: 38px;
  padding: 7px 15px;
  color: #33485c;
  border: 1px solid #aebdca;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ticket_info,
.ticket_info th,
.ticket_info td,
table.list,
table.list th,
table.list td {
  box-sizing: border-box;
}

#clientLogin {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 14px;
}

#footer {
  display: flex;
  width: auto;
  min-height: 88px;
  margin: 0;
  padding: 24px 16px 30px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #91a0ae;
  box-sizing: border-box;
  font-size: 12px;
  text-align: center;
}

#footer p {
  margin: 0;
}

#footer a {
  color: #bdc9d4;
}

#poweredBy {
  float: none;
  margin: 0;
}

@media (max-width: 760px) {
  #container {
    width: min(100% - 20px, 1120px);
  }

  #header {
    min-height: 130px;
    padding: 20px 10px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  #header #logo {
    max-width: 92vw;
  }

  #header #logo img {
    width: min(330px, 84vw);
  }

  #header .pull-right {
    width: 100%;
    text-align: left;
  }

  #nav {
    overflow-x: auto;
  }

  #nav li {
    flex: 0 0 auto;
  }

  #nav li a {
    padding: 0 13px;
    white-space: nowrap;
  }

  #content {
    margin-top: 12px;
    padding: 24px 18px;
    border-radius: 15px;
  }

  #landing_page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "sidebar";
    gap: 28px;
  }

  #landing_page .sidebar {
    padding: 18px;
  }

  #footer {
    flex-direction: column;
    gap: 7px;
  }

  table,
  .ticket_info {
    max-width: 100%;
  }
}
