/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../modules/shared/main';
:host {
  background-color: @main-background-color; // TODO implement actual color
  display: flex;
  flex-direction: column;
  line-height: @default-line-height;
  min-height: 100vh;

  .navbar {
    align-items: center;
    background-color: @navbar-background-color;
    border-radius: 0;
    color: #fff;
    margin-bottom: 0;
    .stretch-flex;
    h1 {
      align-items: center;
      align-self: stretch;
      background: @navbar-logo-background-color url('/resources/assets/images/ambari-logo.png') no-repeat;
      background-position: .5em center;
      background-size: 25px;
      display: flex;
      font-size: 20px;
      margin: 0 2em 0 0;
      padding: 0 2em;
      &.full-flex-width {
        flex-basis: 100%;
      }
    }
    breadcrumbs {
      font-size: 20px;
      .stretch-flex;
    }

    /deep/ top-menu {
      margin-left: auto;
      margin-right: 5em;
    }
    &:not(.authorized) {
      h1 {
        margin: 0;
      }
    }
  }
  .auth-checking-in-progress {
    align-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
  }

  .request-indicator {
    background: rgba(255,255,255,.7);
    top: calc(-1 * (3em + .3em));
    color: @info-color;
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    opacity: .7;
    padding: .3em;
    position: fixed;
    transition: top 500ms ease-in-out;
    transform: translateX(-50%);
    z-index: 1200;
    &.open {
      top: 0;
    }
    // &:before {
    //   .circle-spinner(1em, 2px, @info-color);
    //   content: ' ';
    //   display: inline-block;
    //   line-height: 1.1em;
    // }
  }

}
