.input-group input[type="file"]{
  display: inline-block;
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 333;
  &[disabled]{
    &:hover{
      cursor: not-allowed;
    }
    ~ .percent{
      .fa-upload{
        color: #F7F7F7;
      }
    }
  }
}
.file-upload,
.img-upload{
  input[type="text"]{

  }
  .percent{
    display: inline-block;
    width: 35px;
    text-align: center;
    font-size: 12px;
    line-height: 32px;
  }
}

.input-error{
  transition: all 250ms ease-in;
  color: #F30000;
  font-size: 11px;
  margin: 5px 0;
  opacity:0;
  &.show{
    opacity:1;
  }
}

.file-upload,
.img-upload{
  &:hover{
    cursor: pointer;
  }
  .fa-upload:before{
    font-size: 20px;
    line-height: 34px;
  }
  .border{
    display: inline-block;
    position: relative;
    text-align: center;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    border: 1px solid rgb(204, 204, 204);
    border-left: 0;
    height: 34px;
    width: 40px;
    // overflow: hidden;
  }
}

select[multiple], select[size] {
  max-height: $select-size;
}

.has-error {
  .input-group-addon {
    &.link {
      border-color: #a94442;

      .fa {
        color: #a94442;
      }
    }

    &.image {
      border-color: #a94442;

      .fa {
        color: #a94442;
      }
    }
  }
  .file-upload,
  .img-upload {
    .upload-wrapper {
      .fa {
        color: #a94442;
      }
    }
  }
}

.input-group-addon {
  &.link {
    color: $addon-color;
    background-color: $addon-link-bg;
    border-color: $addon-link-border;
  }

  &.image {
    color: $addon-color;
    background-color: $addon-image-bg;
    border-color: $addon-image-border;
  }

  &.meta {
    color: $addon-color;
    background-color: $addon-meta-bg;
    border-color: $addon-meta-border;
  }
}

.wysiwyg-toolbar {
  white-space: normal !important;
  .underline {
    &:after {
      content: "U";
    }
  }
  .fa-strikethrough {
    &:after {
      content: "Ꞩ";
    }
  }
}

.wysiwyg-container {
  .dropdown {
    display: inline-block;
  }
  .dropdown-toggle {
    background: none;
    border: none;
    line-height: 25px;
    padding-bottom: 0;
  }
  .wysiwyg-toolbar-top {
    overflow: visible;
  }

  .dropdown-menu {
    max-height: 200px;
    overflow: auto;
    border-radius: 0px 4px 4px 4px;
    font-size: 13px;
    margin: 0;
    >li {
      >a {
        padding: 0px 10px;
      }
    }
  }
}

.wysiwyg-popup {
  &.image {
    border-radius: 0;
    margin-bottom: 0;
    max-width: 300px;
    margin-top: -40px;
    margin-left: 40px;
    .form-group {
      margin-bottom: 0;
    }
    .input-error {
      display: none;
    }
  }
  .btn-add-img-wrapper {
    display: table-cell;
    position: relative;
    vertical-align: middle;
    .btn-add-img {
      border-radius: 0;
      border: 0;
    }
  }
  &.smiley {
    padding: 8px 10px 5px 5px;
    max-height: 200px;
    overflow: auto;
    transition: all 350ms ease-in;
    margin-top: -15px;
    margin-left: 20px;
  }
  &.on {
    &.smiley {
      box-shadow: 0px 5px 3px 0px rgba(0, 0, 0, 0.1);
    }
  }
  .smiley-title {
    border-bottom: 1px solid #f1f1f1;
    color: #666;
    font-weight: 100;
    font-size: 12px;
    text-align: center;
  }
  .smiley-subtitle {
    color: #999;
    font-weight: 100;
    font-size: 10px;
    text-transform: capitalize;
    padding-left: 5px;
    padding-top: 5px;
  }
  .wysiwyg-toolbar-smiley {
    width: 19px;
    text-align: center;
    &:hover {
      cursor: pointer;
    }
  }
}

.rich [contenteditable]{
  padding: 10px;
  min-height: 100px;
  -moz-appearance: textfield-multiline;
  -webkit-appearance: textarea;
  overflow: auto;
  resize: both;
}

.structure-list,
.references-list{
  height: 100%;
}

.references-files{
  height: calc(100% - 60px);
}

.references-files-wrapper{
  display: table;
  height: calc(100% - 20px);
  width: 100%;
  .list-group{
    display: table-cell;
    vertical-align: top;
    padding-bottom: 10px;
    padding-right: 20px;
    width: 100px;
  }
  .list-group-item{
    &:hover{
      cursor: pointer;
    }
  }
  .filename-input{
    min-width: 200px;
  }
  .error-display{
    color: #ff2323;
    font-size: 11px;
    padding: 0 7px 3px;
  }
}

.btn-add-reference{
  padding: 0;
  .input-group-addon,
  input{
    transition: all 250ms ease-in-out;
  }
  .input-group{
    padding: 6px;
  }
  &.error{
    .input-group-addon{
      background: rgba(255, 35, 35, 0.57);
      color: #FFF;
      cursor: no-drop;
    }
    .input-group-addon,
    input{
      border-color: #ff2323;
    }
  }
}

.display-json-wrapper{
  display: table-cell;
  position: relative;
  vertical-align: top;
  .form-control{
    height: 100%;
  }
}

.json-error{
  color: #ff2323;
  padding: 5px;
  opacity: 0;
  transition: all 250ms ease-in;
}

.text-saved{
  transition: all 400ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: absolute;
  right: 15px;
  top: 10px;
  opacity: 0;
  color: #26e826;
  text-shadow: 0px 1px 1px rgb(255, 255, 255);
  transform: scale(0.9);
}

.display-json{
  background: rgba(181, 181, 181, 0.03);
  border: none !important;
  overflow: auto !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
  transition: all 250ms ease-in;
  opacity: 0;
  &.error{
    background: rgba(255, 0, 0, 0.03);
  }
  &.saved{
    ~ .text-saved{
      opacity: 1;
      transform: scale(1);
    }
  }
}
