//
// Prefix
//
.csf{
  position: relative;
  margin-top: 20px;
  margin-right: 20px;

  label{
    padding: 0;
    margin: 0;
    display: inline-block;
  }
}

//
// Validate Block
//
div.codevz-settings-error{
  margin: 0 0 15px 0;
}

//
// Header
//
.codevz-header{
  position: relative;
}

//
// Header Inner
//
.codevz-header-inner{
  background-color: #050505;
  padding: 25px;

  h1{
    color: #fff;
    float: left;
    font-size: 1.5em;
    line-height: 26px;
    font-weight: 400;
    margin: 0;

    small{
      font-size: 11px;
      color: #555;
      font-weight: 500;
    }
  }
}

//
// Header Sticky
//
.codevz-sticky{

  .codevz-header-inner{
    position: fixed;
    z-index: 20;
    top: 32px;
    @include box-shadow(0 5px 25px rgba(black, 0.25));
  }
}

//
// Header and Footer Buttons
//
.codevz-buttons{
  float: right;

  .button{
    margin: 0 2px;
    line-height: 26px;
  }
}

//
// Header Helpers
//
.codevz-header-left{
  float: left;
}

.codevz-header-right{
  float: right;
}

//
// Navigation
//
.codevz-nav{
  display: block;
  position: relative;
  z-index: 10;
  float: left;
  width: 225px;

  ul{
    clear: left;
    margin: 0;
    list-style-type: none;

    li{
      margin-bottom: 0;

      + li a{
        border-top: 1px solid #2f2f2f;
      }

      a{
        font-size: 13px;
        position: relative;
        display: block;
        padding: 15px;
        text-decoration: none;
        color: #999;
        background-color: #222;
        @include transition(all 0.2s ease-out);

        &:hover{
          color: #fff;
        }

        &:focus{
          outline: none;
          @include box-shadow(none);
        }
      }

      .codevz-section-active{
        color: #fff;
        background-color: #111;

        &:after{
          content: " ";
          position: absolute;
          right: 0;
          top: 50%;
          height: 0;
          width: 0;
          pointer-events: none;
          border: solid transparent;
          border-right-color: #fff;
          border-width: 4px;
          margin-top: -4px;
        }
      }

      .codevz-arrow:after{
        content: "\f054";
        display: inline-block;
        font-family: "Font Awesome 5 Free";
        font-size: 9px;
        line-height: 1;
        position: absolute;
        right: 10px;
        top: 50%;
        margin-top: -4px;
        @include transform(rotate(0));
      }

      &.codevz-tab-active{

        .codevz-arrow:after{
          @include transform( rotate(90deg) );
        }

        ul{
          display: block;
        }
      }
    }

    ul{
      display: none;
      position: relative;
      border-bottom: 1px solid #2f2f2f;
      position: relative;

      li{

        a{
          font-size: 12px;
          padding: 13px 15px 13px 25px;
          background-color: #191919;
        }

        .codevz-section-active{
          background-color: #101010;
        }

        &:last-child a{
          border-bottom: 0;
        }
      }

      &:before{
        content: '';
        position: absolute;
        top: 0;
        left: 15px;
        z-index: 1;
        width: 1px;
        height: 100%;
        background-color: rgba(#222, 0.75);
      }
    }
  }

  .fa{
    width: 20px;
    margin-right: 5px;
    font-size: 14px;
    text-align: center;
  }
}

//
// Navigation Background
//
.codevz-nav-background{
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9;
  width: 225px;
  background-color: #222;
}

//
// Wrapper
//
.codevz-wrapper{
  position: relative;
  background-color: #fff;
}

//
// Content
//
.codevz-content{
  position: relative;
  margin-left: 225px;
}

//
// Sections
//
.codevz-sections{
  float: left;
  width: 100%;
}

//
// Section Title for Expand
//
.codevz-section-title{
  display: none;
  padding: 20px 30px;
  background-color: #5bc0de;

  h3{
    color: #fff;
    margin: 0;
    padding: 0 !important;
    font-weight: bold;
    text-transform: uppercase;
    @include text-shadow(1px 1px 0 rgba(#44a7c5, 0.5));
  }
}

//
// Footer
//
.codevz-footer{
  padding: 20px;
  color: #555;
  font-size: 11px;
  background-color: #050505;
}

//
// Copyright
//
.codevz-copyright{
  float: left;
  margin-top: 5px;
}

//
// Show all options
//
.codevz-search-all,
.codevz-show-all{
  .codevz-nav-background,
  .codevz-nav{
    display: none;
  }

  .codevz-content{
    margin-left: 0;
  }

  .codevz-section-title,
  .codevz-section{
    display: block !important;
  }
}

.codevz-search-all{
  .codevz-section-title{
    display: none !important;
  }
}

//
// Expand
//
.codevz-expand-all{
  position: absolute;
  right: 40px;
  bottom: 5px;
  z-index: 1;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;

  &:hover{
    color: #fff;
  }

  &:focus{
    @include box-shadow(none);
  }
}

//
// Search
//
.codevz-search{
  float: left;

  input{
    margin: 0 0 0 10px;
    border: none;
    font-size: 12px;
    line-height: 12px;
    text-align: inherit;
    padding: 7px 10px;
    color: #fff;
    background-color: #333;
    @include border-radius(2px);
    @include box-shadow(none);

    &:focus{
      background-color: #444;
      @include box-shadow(none);
    }

    &::-webkit-input-placeholder{
      color: #666;
    }
  }
}

.codevz-saving{
  cursor: default;
  pointer-events: none;
  @include opacity(0.5);
}

//
// Seperator
//
.codevz-seperator{
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: 30px 15px 15px 15px;
}

//
// Field
//
.codevz-field{
  position: relative;
  padding: 30px;

  + .codevz-field:not(.hidden){
    border-top: 1px solid #eee;
  }

  p:last-child{
    margin-bottom: 0 !important;
  }

  &:after,
  &:before{
    content: " ";
    display: table;
  }

  &:after{
    clear: both;
  }

  h4{
    margin-top: 0;
  }

  .codevz-title{
    position: relative;
    width: 25%;
    float: left;

    h4{
      margin: 0;
      color: #23282d;
    }
  }

  .codevz-fieldset{
    margin-left: 30%;
  }

  pre{
    clear: both;
    color: #ccc;
    background-color: #222;
    padding: 15px;
    overflow: auto;
    @include border-radius(2px);

    strong{
      color: #ffbc00;
    }
  }
}

//
// Pseudo Field
//
.codevz-pseudo-field{
  padding: 0 5px 0 0 !important;
  display: inline-block;

  + .codevz-pseudo-field{
    border: 0;
  }

  pre{
    display: none;
  }
}

//
// Metabox
//
.codevz-metabox{
  margin: -6px -12px -12px -12px;

  .codevz-section-title{
    padding: 20px;
  }
}

//
// Metabox Restore
//
.codevz-metabox-restore{
  text-align: right;
  padding: 10px;
  border-top: 1px solid #eee;

  .codevz-button-cancel,
  input{
    display: none;
  }

  span{
    -webkit-user-select: none;
    user-select: none;
  }


  input:checked ~ .codevz-button-restore{
    display: none;
  }

  input:checked ~ .codevz-button-cancel{
    display: inline-block;
  }

}

//
// Metabox Side
//
#side-sortables{

  .codevz-section-title{
    padding: 12px;
  }

  .codevz-field{
    padding: 12px;

    .codevz-title{
      float: none;
      width: 100%;
      margin-bottom: 10px;
    }

    .codevz-fieldset{
      margin-left: 0;
    }
  }

  .codevz-notice{
    padding: 12px;
  }
}

//
// Tooltip
//
.codevz-tooltip{
  position: absolute;
  z-index: 5000001;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  padding: 6px 12px;
  max-width: 200px;
  color: #fff;
  background-color: #000;
  background-color: rgba(black, 0.85);
  @include border-radius(4px);
}
