#header {
  background: @mainColor;
  position: fixed;
  right: 0;
  left: 0;
  top:0;
  z-index: @zindex-navbar-fixed;
  .translate3d(0, 0, 0);

  @media (min-width: @grid-float-breakpoint) {
    border-radius: 0;
  }

  .container {
    padding: 0 @main-gutter;
    position: relative;
    min-height: @header-height;
  }

  .logo {
    margin: 40px 0 0;
    .logo-xs {
      display: block;
      margin-top: 5px;
      max-height: 30px;
    }
  }

  .create-ticket {
    padding-top: 40px;
    .btn {
      @time: 0.4s;
      color: #41ffd4;
      background: #41ffd4;
      line-height: 26px;
      border: 2px solid #41ffd4;
      border-radius: 40px;
      overflow: hidden;
      position: relative;
      text-transform: uppercase;
      padding: 5px;
      height: 40px;
      text-indent: 20px;
      width: 40px;
      -webkit-transition: width @time cubic-bezier(0, 1.22, 0.66, 1), color @time, background @time;
              transition: width @time cubic-bezier(0, 1.22, 0.66, 1), color @time, background @time;
      &:hover,
      &:focus {
        color: #fff;
        background: @mainColor;
        -webkit-animation-direction: reverse;
                animation-direction: reverse;
        width: 140px;
        &:before,
        &:after {
          border-color: #fff;
        }
      }
      &:before {
        content: '';
        border-right: 2px solid @mainColor;
        position: absolute;
        top: 11px;
        left: 17px;
        line-height: 10px;
        height: 14px;
        width: 0;
      }
      &:after {
        content: '';
        border-top: 2px solid @mainColor;
        position: absolute;
        top: 17px;
        left: 11px;
        height: 0;
        width: 14px;
      }
    }
  }

  .search-field {
    display: block;
    margin: 46px 0 0;
    input {
      color: #fff;
      background: none;
      border: none;
      border-radius: 0;
      border-bottom: 2px solid #fff;
      box-shadow: none;
      padding: 4px 0;
    }
    :-ms-input-placeholder {
      color: #fff
    }
    ::-moz-placeholder {
      color: #fff
    }
    ::-webkit-input-placeholder {
      color: #fff
    }
    ::placeholder {
      color: #fff
    }
  }

  .quick-access {
    clear: right;
    margin: 10px 0 0;
    .form-group {
      display: inline-block;
      margin: 0;
      vertical-align: top;
    }
  }

  .navbar {
    min-height: 0;
    margin: 10px 0;
  }
  .navbar-nav {
    > li {
      > a {
        color: #fff;
        margin-right: 20px;
        padding: 0;
        &:hover {
          background: none;
        }
      }
    }
  }
}

.logo {
  display: block;
  img {
    max-width: 100%;
    max-height: 100%;
  }
}

@media (max-width: @screen-xs-max) {
  #header {
    .container {
      min-height: @header-mobile-height;
    }
    position: absolute;
    .logo {
      position: absolute;
      text-align: left;
      margin-top: 20px;
    }
    .header-links {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1000;
      margin: 0;
      width: 100%;
      .navbar-nav {
        margin: 0;
        text-align: center;
        > li {
          display: inline-block;
          > a {
            margin: 0 10px;
          }
        }
      }
    }
    .create-ticket {
      .btn {
        text-indent: 40px;
        &:hover,
        &:focus {
          width: 40px;
        }
      }
    }
    .header-create-ticket,
    .header-search,
    .header-user-profile {
      position: absolute;
      top: 20px;
    }
    .header-create-ticket {
      right: 50px;
      .create-ticket {
        padding-top: 0;
      }
    }
    .header-user-profile {
      right: 0;
      .user-wrapper {
        margin-top: 0;
      }
    }
    .header-search {
      right: 100px;
      .search-field {
        position: relative;
        margin-top: 0;
        min-width: 40px;
        &:before {
          color: #fff;
          content: '\f002';
          display: inline-block;
          font: normal normal normal 24px/1 FontAwesome;
          font-size: inherit;
          text-rendering: auto;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          text-align: center;
          font-size: 24px;
          line-height: 40px;
          height: 40px;
          width: 40px;
          position: absolute;
          top: 0;
          left: 0;
        }
        .form-control {
          opacity: 0;
          width: 40px;
          -webkit-transition: all .3s cubic-bezier(0, 1.22, 0.66, 1);
                  transition: all .3s cubic-bezier(0, 1.22, 0.66, 1);
        }
        &:hover,
        &:focus {
          &:before {
            display: none;
          }
          .form-control {
            opacity: 1;
            width: 125px;
          }
        }
      }
    }
  }
}