@import "variables";

#top {
  color: $white;
  border-bottom: 2px solid $red;
  height: 30px;
  line-height: 30px;
  min-width: 1000px;
  overflow: hidden;
  background: #262626;
  background: linear-gradient(#262626, #111111);

  .logo-top-left {
    z-index: 1000;
    display: inline-block;
    position: absolute;
    top: 1px;
    background-color: $white;
    padding: 4px 17px 5px 10px;
    margin-top: 2px;
    border-radius: 0 15px 15px 0;

    &:before {
      content: "";
      position: fixed;
      top: -10px;
      left: 0;
      width: 100%;
      height: 10px;
      z-index: 100;
    }
  }

  .arrowsprite {
    background: url('[{$dir_images}]/downarrow.png');
    background-repeat: no-repeat;
    background-position: bottom;
    height: 10px;
    width: 10px;
    top: 25px;
    position: absolute;
    z-index: 999;
    left: 335px;
  }

  #mainMenu {
    display: inline-block;
    line-height: 25px;
    color: #9b9b9b;
    overflow: hidden;
    white-space: nowrap;
    margin: 1px 0 0 0;
    padding: 0;

    li {
      list-style-type: none;
      float: left;
      margin-left: 10px;
      font-weight: bold;
      text-align: center;
      min-width: 92px;
      max-width: 125px;
      padding-left: 2px;
      padding-right: 2px;
      position: relative;
      display: inline;

      a {
        color: $grey;
        text-shadow: 0 1px 0 $black;
        font-weight: bold;
        font-size: 11px;
        text-align: center;

        &:hover {
          color: lighten($brand-color, 6.7%);
        }
      }

      &.active {
        background-color: $lightgrey;
        background: linear-gradient($lightgrey, $darkgrey);
        border-radius: 5px;
        border: 1px solid $black;

        a {
          color: $black;
          text-shadow: 0 1px 0 $white;

          &:hover {
            color: lighten($brand-color, 6.7%);
          }
        }
      }
    }
  }
}

// Styles for the new module drop-down
#module-dropdown {
  position: fixed;
  width: 180px;
  border: 1px solid $darkgrey;
  border-top: 0;
  margin: 5px 0 0 -15px;
  box-shadow: 1px 2px 4px #444444;
  z-index: 1010;
  background-color: $lightgrey;
  background: linear-gradient($lightgrey, $grey);

  ul {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;

    li {
      a {
        padding: 4px;
        line-height: 15px;
        display: block;
      }

      img.module-icon {
        display: block;
        float: left;
        width: 16px;
        height: 16px;
        margin-right: 7px;
      }

      &.active {
        background: $white;
      }

      &.nondisabled:hover {
        background: $white;
      }

      &.disabled {
        color: $black;
        opacity: 0.5;

        a:hover {
          color: inherit;
          text-decoration: none;
          cursor: default;
        }
      }
    }

    &.moduleChilds {
      width: 150px;
      border: 1px solid $darkgrey;
      border-top: 0;
      box-shadow: 1px 2px 4px #444444;
      z-index: 1001;
      background-color: $lightgrey;
      background: linear-gradient($lightgrey, $grey);
      position: absolute;

      a:hover {
        background: $white;
      }
    }
  }
}
