// Variables
@import "../../../administrator/templates/atum/scss/variables";
$jicon-css-prefix: icon;
$fa-css-prefix: fa;
$fa-font-path: "../../../media/vendor/fontawesome-free/webfonts";

// Font Awesome
@import "../../../administrator/templates/atum/scss/vendor/fontawesome-free/fontawesome";

// "Font Awesome 5 Free"
@import "../../../media/vendor/fontawesome-free/scss/fontawesome";
@import "../../../media/vendor/fontawesome-free/scss/regular";
@import "../../../media/vendor/fontawesome-free/scss/solid";
@import "../../../media/vendor/fontawesome-free/scss/brands"; // order of loading is important.

// B/C for Icomoon
@import "../../../build/media_source/system/scss/icomoon";

// Bootstrap
@import "../../../media/vendor/bootstrap/scss/bootstrap";

// Backend Template stuff
@import "../../../administrator/templates/atum/scss/mixin";
@import "../../../administrator/templates/atum/scss/blocks/global";
@import "../../../administrator/templates/atum/scss/blocks/header";
@import "../../../administrator/templates/atum/scss/vendor/bootstrap/custom-forms";
@import "../../../administrator/templates/atum/scss/vendor/joomla-custom-elements/joomla-alert";

// Safari fix
@import "../../../administrator/templates/atum/scss/vendor/bootstrap/reboot";

body {
  background: var(--template-bg-light);
}

.form-select {
  @extend .form-select;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

.j-install {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  .logo {
    max-width: 270px;
  }

  img.logo-small,
  svg.logo-small {
    width: 2rem;
    height: 2rem;
  }

  .icon-question {
    color: $white;

    &:hover {
      color: var(--template-link-color);
    }
  }
}

.j-container {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;

  h1 {
    color: $dark-blue;
    text-align: center;
  }
}

.j-install-step {
  display: none;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 0 2px rgba(52, 58, 67, .1), 0 2px 5px rgba(52, 58, 67, .08), 0 5px 15px rgba(52, 58, 67, .08);

  &.active {
    display: block;
  }

  select {
    width: 100%;
    margin-left: 0 !important;
  }
}

.j-install-step-header {
  position: relative;
  padding: 10px 25px;
  font-size: 1.1rem;
  line-height: 2.4rem;
  color: $dark-blue;
  background-color: #fff;
  border-bottom: 1px solid #efefef;

  span {
    position: relative;
    margin-right: 5px;
    font-size: 1.2rem;
  }
}

.j-install-step-form {
  padding: .65rem 1.2rem;

  // Remove default bootstrap margins in the installer forms.
  .control-group {
    margin-bottom: 0;

    .control-label {
      padding: 0;
    }
  }
}

.languageForm {
  padding: 0 0 30px;

  .form-select {
    width: 100%;
  }
}

// Alerts
#system-message-container joomla-alert {
  margin-top: 25px;
}

.alert-heading {
  font-size: $h4-font-size;
}

.hidden,
[hidden="hidden"] {
  display: none;
}

.btn-success {
  color: #fff;
  background-color: #75b544;
  border-color: #75b544;
}


// Form

.form-control {
  background-color: var(--white-offset);

  &.input-full {
    max-width: 100%;
  }

}

label {
  margin-bottom: .5rem;
}

.control-group {
  margin-bottom: 18px;

  &::after {
    display: table;
    clear: both;
    content: "";
  }

  .control-label {
    padding-top: 5px;
    padding-right: 5px;
    text-align: left;
  }
}

.spacer hr {
  width: 380px;
}

.card .form-select {
  width: 100%;
}

td .form-control {
  display: inline-block;
  width: auto;
}

legend {
  margin-bottom: 1.1rem;
}

.checkboxes {
  padding-top: 5px;

  .checkbox input {
    position: static;
    margin-left: 0;
  }

}

.form-check {
  padding-top: 5px;
  margin-bottom: 0;
}

// Possibly temporary until Bootstrap support it themselves
.form-select[multiple] {
  height: auto;
  background: none;
}

// Block display for the validation message
.form-control-feedback {
  display: block;
  color: $red;
}

// Language Table
caption {
  caption-side: top;
}

.bg-warning {
  color: #292b2c;
}

// footer
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: $zindex-header;
  background-color: $white;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .25);
}

.table > :not(:last-child) > :last-child > * {
  border-bottom-color: $table-border-color;
}
