/* ==========================================================================
   CSS Custom Properties (Variables)
   Extending Bootstrap 4.1's :root with app-specific colors
   ========================================================================== */

:root {
  /* Primary color scheme (navbar, buttons, table headers) */
  --color-primary-highlight: #7ec4d4;
  --color-primary-light: #5ba8bc;
  --color-primary: #3f91a6;
  --color-primary-dark: #367c8e;

  /* App-specific colors */
  --color-body-bg: #42403e;
  --color-nav-bg: var(--color-primary);
  --color-nav-hover: var(--color-primary-dark);
  --color-admin-header: #f7f9e8;
  --color-border: #ccc;
  --color-border-light: #eee;
  --color-text-muted: #888;
  --color-text-muted-light: #999;
  --color-text-muted-dark: #666;
  --color-shadow: rgba(0, 0, 0, 0.15);
  --color-payment-primary: #2c5282;
  --color-payment-bg: #e6f2ff;
}

/* ==========================================================================
   Custom Utility Classes (extending Bootstrap 4)
   ========================================================================== */

/* Max-width utilities */
.mw-200px { max-width: 200px !important; }
.mw-500px { max-width: 500px !important; }
.mw-600px { max-width: 600px !important; }

/* ==========================================================================
   Content Page Components (Views/Pages)
   ========================================================================== */

/* ----- FAQ Accordion (FrequentlyAskedQuestions) ----- */
.faq-container {
  width: 70%;
  margin: 70px auto;
  color: #4B4B4B;
}

.faq-container section {
  margin-bottom: 90px;
}

.faq-container section h1 {
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 10px;
  font-size: 25px;
  line-height: 1.5;
}

.faq-container section p,
.faq-container section a {
  text-align: center;
  letter-spacing: 3px;
}

.toggle:last-child {
  border-bottom: 1px solid #dddddd;
}

.toggle .toggle-title {
  position: relative;
  display: block;
  border-top: 1px solid #dddddd;
  margin-bottom: 6px;
}

.toggle .toggle-title h3 {
  font-size: 20px;
  margin: 0px;
  line-height: 1;
  cursor: pointer;
  border: 0px;
}

.toggle .toggle-inner {
  padding: 7px 25px 10px 25px;
  display: none;
  margin: -7px 0 6px;
}

.toggle .toggle-inner div {
  max-width: 100%;
}

.toggle .toggle-title .title-name {
  display: block;
  padding: 25px 25px 14px;
}

.toggle .toggle-title a i {
  font-size: 22px;
  margin-right: 5px;
}

.toggle .toggle-title i {
  position: absolute;
  background: url("http://arielbeninca.com/Storage/plus_minus.png") 0px -24px no-repeat;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  margin: 20px;
  right: 0;
}

.toggle .toggle-title.active i {
  background: url("http://arielbeninca.com/Storage/plus_minus.png") 0px 0px no-repeat;
}

.expandall {
  margin-bottom: 45px;
  margin-left: 20px;
  margin-top: -20px;
}

@media only screen and (max-width: 841px) {
  .faq-container {
    width: 100% !important;
  }
}

/* ----- About Page Box Shadow Effect ----- */
.effect5 {
  position: relative;
}

.effect5:before,
.effect5:after {
  z-index: -1;
  position: absolute;
  content: "";
  bottom: 25px;
  left: 10px;
  width: 50%;
  top: 80%;
  max-width: 300px;
  background: #777;
  box-shadow: 0 35px 20px #777;
  transform: rotate(-8deg);
}

.effect5:after {
  transform: rotate(8deg);
  right: 10px;
  left: auto;
}

/* ----- Inspection Stations Directory ----- */
#StationList table {
  width: 100%;
  border: 0px;
  font-size: 14px;
}

#StationList tr.header {
  background: #73bb9d;
  color: white;
}

#StationList tr {
  background: #f3fad759;
}

#StationList th {
  padding: 12px;
  padding-left: 17px;
}

#StationList td {
  padding: 19px;
}

/* Select2 dropdown overrides */
.select2-selection--single {
  height: 40px !important;
  padding-top: 5px;
}

.select2-selection__arrow {
  height: 39px !important;
}

/* Error page styling */
.error-page-text {
  font-size: 17px;
  line-height: 200%;
}

/* ----- Floated Content Images ----- */
.content-img-right {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.content-img-right--lg {
  float: right;
  width: 300px;
  max-width: 40vw;
  margin-left: 34px;
  margin-bottom: 30px;
}

/* ----- PDF Link Lists ----- */
.pdf-link-list {
  list-style-type: none;
  line-height: 200%;
  padding-left: 0;
}

.pdf-link-list li {
  clear: both;
  margin-top: 20px;
}

.pdf-icon {
  float: left;
  margin-right: 20px;
  max-width: 40px;
}

.pdf-icon--lg {
  float: left;
  margin-right: 20px;
  max-width: 60px;
}

.pdf-icon--inline {
  max-width: 30px;
  margin-left: 14px;
  vertical-align: middle;
}

/* ----- Section Headings with Spacing ----- */
.section-heading {
  margin-top: 30px;
}

.section-heading--lg {
  font-size: 23px;
  margin-bottom: 19px;
}

/* ----- Spaced Lists ----- */
.list-spaced {
  line-height: 190%;
}

.list-spaced--sm {
  line-height: 150%;
}

.list-spaced--lg {
  line-height: 200%;
}

.list-compact {
  line-height: 120%;
}

/* ----- Warning/Alert Text ----- */
.text-warning-red {
  color: red;
}

/* ----- Back to Top Link ----- */
.back-to-top {
  text-align: right;
}

.back-to-top a {
  text-decoration: none;
  font-size: 16px;
  color: var(--color-text-muted);
}

.back-to-top a:hover {
  text-decoration: underline;
}

.back-to-top__icon {
  width: 40px;
  margin-right: 20px;
  margin-left: 18px;
}

/* ----- Image with Shadow ----- */
.img-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.img-shadow--soft {
  box-shadow: 0 8px 6px -6px var(--color-text-muted);
}

/* ----- Intro Paragraph ----- */
.intro-text {
  font-size: 16px;
  line-height: 180%;
}

.intro-text--lg {
  font-size: 17px;
  font-weight: 500;
}

/* ----- OBD Icon (InspectionProcess page) ----- */
.obd-icon {
  float: right;
  width: 170px;
  max-width: 30vw;
  margin-top: 40px;
  margin-left: 30px;
  margin-right: 10vw;
}

/* ----- List Style Variants ----- */
.list-circle {
  list-style-type: circle;
}

.list-square {
  list-style-type: square;
}

/* ----- Content Block Spacing ----- */
.content-block {
  margin-top: 27px;
  margin-right: 20px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  background: var(--color-body-bg);
}

#wrapper {
  overflow-x: hidden;
}

nav {
  background: var(--color-nav-bg);
}

nav ul {
  list-style: none;
}

nav ul li {
  float: left;
  position: relative;
  font-size: 1.5rem;
}

nav ul li a,
nav ul li a:visited {
  display: block;
  padding: 0 1.5rem;
  line-height: 5rem;
  color: white;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a:visited:hover {
  background: var(--color-nav-hover);
  color: white;
  text-decoration: none;
}

nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after {
  padding-left: 0.25rem;
  content: '\25BE';
}

nav ul li ul.nav-dropdown {
  padding-left: 0;
  min-width: 12rem;
  position: absolute;
  display: none;
  z-index: 1;
  box-shadow: 0 3px 12px var(--color-shadow);
  background: white;
}

nav ul li ul li {
  min-width: 12rem;
  width: 100%;
}

nav ul li ul li a {
  padding: 1rem 1.5rem;
  line-height: 1.5rem;
  font-size: 1.125rem;
  color: #333;
}

nav ul li ul li a:hover,
nav ul li ul li a:visited,
nav ul li ul li a:visited:hover {
  color: #333;
  background: var(--color-border-light);
}

footer {
  height: 5rem;
  background: var(--color-border-light);
}

#nav-toggle {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: #222;
  border-radius: 3px;
  vertical-align: middle;
}

#nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#nav-toggle span:before {
  top: -8px;
}

#nav-toggle span:after {
  top: 8px;
}

#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
  height: 3px;
  width: 24px;
  background: white;
  border-radius: 1px;
  position: absolute;
  display: block;
  content: '';
  transition: all 300ms ease-in-out;
}

#nav-toggle.active span {
  background-color: transparent;
}

#nav-toggle.active span:before {
  top: 0;
  transform: rotate(45deg);
}

#nav-toggle.active span:after {
  top: 0;
  transform: rotate(-45deg);
}

/* Breakpoint: xl (Bootstrap 4 extra-large) = 1200px */
@media only screen and (min-width: 1200px) {
  nav ul.nav-list > li:first-child a {
    padding-left: 3rem;
  }
}

@media only screen and (max-width: 1199.98px) {
  nav {
    width: 100%;
  }

  nav ul {
    display: none;
  }

  nav ul li {
    float: none;
  }

  nav ul li a {
    padding: 1rem;
    line-height: 1.25rem;
  }

  nav ul li ul li a {
    padding-left: 2rem;
  }

  .nav-dropdown {
    position: static;
  }
}

.inria-sans {
  font-family: 'Inria Sans', sans-serif;
}

.merriweather-sans {
  font-family: 'Merriweather Sans', sans-serif;
}

.trebuchet-sans {
  font-family: 'Trebuchet MS', sans-serif;
}

.monospace {
  font-family: 'Courier New', courier;
}

.font-size-4 {
  font-size: 1.5rem;
}

.font-size-5 {
  font-size: 3rem;
}


.todays-date {
  font-size: 1.25rem;
}

header {
  position: relative;
}

.primary-header-logo {
  width: 250px;
  height: 80px;
}

.account-link {
  float: right;
  position: relative;
  background: #86969a;
  font-size: 1.125rem;
  text-align: right;
}

.poster {
  background: url('/img/wide-banner.png');
  background-size: cover;
  background-position-y: bottom;
  background-position-x: right;
}

.poster--home {
  height: 268px;
}

.poster__inner {
  height: 190px;
}

.banner-text {
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  line-height: 3.5rem;
  bottom: 1rem;
  left: 1rem;
}

.inner-wrapper {
  min-height: 40rem;
}

main.content {
  max-width: 1140px;
  margin: 0 auto;
}

main.content--home,
.content--home .container {
  max-width: 100vw;
}

main.content--home {
  margin: 0 30px;
}

@media only screen and (max-width: 760px) {
  main.content--home {
    padding-left: 0;
    padding-right: 0;
  }
}

.bordered-box {
  border: 1px solid #ccc;
  border-radius: 0.625rem;
}

.shaded-box {
  background: var(--color-border);
}

.version {
  right: 0.5rem;
  bottom: 0.5rem;
  color: #bbb;
  font-size: 0.5rem;
}

.undecorated {
  text-decoration: none;
}

.undecorated:hover {
  text-decoration: none;
}

a.inspection-support__register {
  height: 54px;
  width: 206px;
  background: url(/img/homepage-button-register-sprite.png) 0 0 no-repeat;
}

a.inspection-support__register:hover {
  background-position-x: -206px;
}

a.inspection-support__servicecall {
  height: 54px;
  width: 206px;
  background: url(/img/homepage-button-service-call-sprite.png) 0 0 no-repeat;
}

a.inspection-support__servicecall:hover {
  background-position-x: -205px;
}

a.inspection-support__certificates {
  height: 64px;
  width: 206px;
  background: url(/img/homepage-button-certificates-sprite.png) 0 0 no-repeat;
}

a.inspection-support__certificates:hover {
  background-position-x: -205px;
}

.inspection-support {
  padding-right: 0;
}

@media only screen and (min-width: 1100px) {
  .inspection-support {
    padding-left: 25px;
  }
}

.inspection-support-box {
  background: #D9D9D9;
  border-radius: 10px;
  padding: 30px;
  padding-bottom: 50px;
  margin-bottom: 52px;
}

.inspection-support-box__heading {
  margin-bottom: 41px;
}

.inspection-support-button-row {
  padding-bottom: 30px;
  margin-bottom: 0.5vw;
}

.inspection-support-content {
  margin-left: 20px;
  padding-left: 1vw;
}

.inspection-support__vector {
  margin: 1.5vw 1vw 0 3vw;
}

.inspection-support__vector img {
  max-width: 100%;
}

@media only screen and (max-width: 1500px) {
  .inspection-support__vector {
    display: none;
  }
}

/* ==========================================================================
   Register Page Styles (from legacy register.css)
   ========================================================================== */

.register-inspector-image {
  float: right;
  max-width: 400px;
  margin-left: 1.5rem;
}

.register-auth-link {
  font-weight: bold;
  font-style: italic;
}

.register-form-divider {
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px dotted #aaa;
}

.register-form-group {
  max-width: 580px;
}

.register-station-input {
  text-transform: uppercase;
}

.register-submit-button {
  margin-top: 1rem;
}

/* ==========================================================================
   Custom Button Styles (consolidated to blue)
   ========================================================================== */

.custom-button {
  box-shadow: inset 0px 1px 0px 0px var(--color-primary-highlight);
  background: linear-gradient(to bottom, var(--color-primary-light) 5%, var(--color-primary-dark) 100%);
  background-color: var(--color-primary);
  border-radius: 8px;
  border: 1px solid var(--color-primary-dark);
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 15px;
  font-weight: bold;
  padding: 12px 26px;
  text-decoration: none;
}

.custom-button:hover {
  background: linear-gradient(to bottom, var(--color-primary) 5%, var(--color-primary-dark) 100%);
  background-color: var(--color-primary-dark);
}

.custom-button:active {
  position: relative;
  top: 1px;
}

/* ==========================================================================
   Form Components
   ========================================================================== */

/* Required field indicator - added by showreddotonrequiredfields.js */
.red-asterisk {
  color: #dc3545;
}

/* ==========================================================================
   Loading Spinner Component (used in _DefaultLayout.cshtml)
   ========================================================================== */

.spinner-overlay {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 998;
  width: 100vw;
  height: 100vh;
  background: #ccc;
  opacity: 0.5;
}

.spinner-middle {
  position: absolute;
  top: 45vh;
  left: 45vw;
  z-index: 999;
}

.lds-spinner {
  color: #000;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #000;
}

.lds-spinner div:nth-child(1) { transform: rotate(0deg); animation-delay: -1.1s; }
.lds-spinner div:nth-child(2) { transform: rotate(30deg); animation-delay: -1s; }
.lds-spinner div:nth-child(3) { transform: rotate(60deg); animation-delay: -0.9s; }
.lds-spinner div:nth-child(4) { transform: rotate(90deg); animation-delay: -0.8s; }
.lds-spinner div:nth-child(5) { transform: rotate(120deg); animation-delay: -0.7s; }
.lds-spinner div:nth-child(6) { transform: rotate(150deg); animation-delay: -0.6s; }
.lds-spinner div:nth-child(7) { transform: rotate(180deg); animation-delay: -0.5s; }
.lds-spinner div:nth-child(8) { transform: rotate(210deg); animation-delay: -0.4s; }
.lds-spinner div:nth-child(9) { transform: rotate(240deg); animation-delay: -0.3s; }
.lds-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.lds-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.lds-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes lds-spinner {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Data Table
   ========================================================================== */

.data-table thead th {
  background: var(--color-nav-bg);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}

.data-table thead th:hover {
  background: var(--color-nav-hover);
}

.data-table .sort-icon {
  font-style: normal;
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.8;
}

.data-table tbody tr:hover {
  background-color: #D3D3D3;
}
