@color: #2c5f90;
@color-2: #73d098;
@color-text: #ffffff;
@background: #3b3b3b;

#dbt-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  z-index: 99999999;
  padding: 15px 30px 15px 15px;
  background: fade(@background, 90%);
  color: #ffffff;
  font-size: 15px;
  font-family: 'Open Sans', 'Arial', sans-serif;
  transition: all .2s ease-out;

  .dbt-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    line-height: 13px;
    color: @color-text;
    opacity: 0.8;
    border: 1px solid fade(@color-2, 100%);
    transition: all .2s ease-out;
    &, &:active, &:hover, &:visited, &:focus {
      outline: none;
      box-shadow: none;
    }
    &:hover {
      opacity: 0.9;
    }
    &:before {
      content: "\00d7";
      opacity: 1;
    }
    &:after {
      background: data-uri("images/debug-bug-icon.png") center center no-repeat;
      background-size: 80% 80%;
      content: '';
      opacity: 0;
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }

  }

  &.dbt-hidden {
    transition: all .2s ease-out;
    transform: translateY(100%);

    .dbt-toggle {
      top: -22px;
      right: 1px;
      width: 18px;
      height: 18px;
      transition: all .2s ease-out;
      background: fade(@background, 90%);
      opacity: 0;
      &:hover {
        opacity: 0.9;
      }
      &:before {
        opacity: 0;
      }
      &:after {
        opacity: 1;
      }
    }

  }


  .settings {
    display: block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0.8;
    border: none;
    background: data-uri("images/settings.png") 0 0 no-repeat;
    background-size: 100%;
    &:hover {
      opacity: 0.9;
    }
  }

  .clear {
    clear: both;
  }

  .title {
    margin: 0 -65px;
    font-size: 16px;
    position: absolute;
    left: 100%;
    top: 50%;
    width: 130px;
    text-align: center;
    transform: rotate(90deg);
    transform-origin: center top;
    //border: 1px solid #ffffff;
    text-transform: uppercase;
    padding: 4px;
    color: #ffffff;

    .toggle-wp-cache-cookie {
      color: fade(@color-2, 50%);
      &.on {
        color: @color-2;
      }
    }
  }

  p {
    margin: 10px 0;
  }

  .main {
    position: relative;
    float: right;
    text-align: right;
    margin: 0 0 70px 70px;
    .time, .queries, .memory, .wp-dubug-coockie-toogles {
      position: relative;
      display: block;
      border: 1px solid lighten(@color-2, 0%);
      padding: 0;
      border-radius: 50%;
      font-size: xx-small;
      width: 50px;
      height: 50px;
      margin: 0 auto 10px;
      text-align: center;
      span {
        display: block;
        font-size: 20px;
        font-weight: bold;
        line-height: 20px;
        margin: 10px 0 0;
      }
      .circle {
        position: absolute;
        width: 70px;
        height: 70px;
        margin: -35px;
        top: 50%;
        left: 50%;
        border: 1px solid darken(@color, 1%);
        border-radius: 50%;
        display: none;
      }
    }
    .time {
      width: 70px;
      height: 70px;
      span {
        line-height: 20px;
        margin: 25px 0 0;
      }
      .circle {
        width: 90px;
        height: 90px;
        margin: -45px;
      }
    }
    .queries {
      position: absolute;
      top: 0;
      left: 0;
      margin: 58px 0 0 -41px;

    }
    .memory {
      position: absolute;
      top: 0;
      left: 0;
      margin: 0 0 0 -60px;
      span {
        font-size: 15px;
      }
    }
  }
  .details {

  }
  .dbt-filters {
    ul {
      padding: 0;
    }
    li {
      list-style: none;
      display: inline-block;
      padding: 4px 6px;
      margin: 0 5px 5px 0;
      border: 1px solid @color-2;
      border-radius: 14px;
      font-size: 0.9em;
    }
  }
  .refs {
    list-style: none;
    font-size: 0.9em;
    padding: 0;
    color: @color-text;
    position: absolute;
    bottom: 0;
    left: 15px;
    li {
      display: block;
      float: left;
      a {
        color: inherit;
        &:hover {
          text-decoration: underline;
        }
      }
      & + li {
        &:before {
          content: '/';
          color: @color-2;
          margin: 0 5px;
        }
      }
    }
  }
  .refs-content, .bg {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .refs-content {
    position: fixed;
    display: none;
    padding: 120px;

    > div.ref-item {
      display: none;
      margin: 0 auto;
      background: #ffffff;
      color: #555;
      padding: 50px;
      position: relative;
      max-height: 100%;
      overflow: auto;
      box-shadow: 0 0 10px fade(darken(@color, 20%), 60%);
    }

    a {
      color: @background;
      &:hover {
        color: @color-2;
      }
    }
  }
  #dbt-settings {
    .setting-item {
      margin: 0 0 10px;
    }
    label {
      width: 50%;
      display: block;
      float: left;
    }
    label.tumbler {
      float: left;
      width: 40px;
      height: 20px;
      border: none;
      background: rgba(255, 67, 73, 0.75);
      position: relative;
      &:before {
        content: '';
        display: block;
        position: absolute;
        background: #ffffff;
        width: 18px;
        height: 18px;
        top: 1px;
        left: 1px;
      }
    }
    input[type=checkbox] {
      display: none;
    }
    input:checked + label.tumbler {
      background: rgba(0, 144, 85, 0.75);
      &:before {
        left: 21px;
      }
    }
  }
  .bg {
    position: absolute;
    background: fade(@background, 60%);
  }

  code {
    background: @color-2;
    max-width: 100%;
    overflow-x: visible;
    display: block;
  }

  pre {
    margin-bottom: 1em;
    padding: 5px;
    padding-bottom: 20px !ie7;
    max-width: 700px;
    max-height: 400px;
    overflow: auto;
    font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif;
    font-size: 13px;
    background-color: #eff0f1;
  }

  p {
    code {
      display: inline-block;
    }
  }
}

.debug-tool-error-list {
  padding: 0;
  margin: 0;
  .debug-tool-error {
    display: block;
    list-style-type: none;
    padding: 15px;
    margin: 10px;
    background: #cccccc;
    border: 1px solid #bbbbbb;
  }
  .stacktrace {
    list-style: none;
    display: block;
    margin: 2px 0;
    padding: 0;

    li {
      display: inline-block;
      padding: 0 4px;
      font-style: italic;
      font-size: 0.8em;
      margin: 2px;
      border-radius: 2px;

    }
  }
  .stacktrace-item(@color) {
    .stacktrace {
      li {
        border: 1px solid @color;
      }
    }
  }
  .dt-warning {
    @color: #ec971f;
    color: darken(@color, 20%);
    background: fade(@color, 30%);
    border-color: @color;
    .stacktrace-item(@color);
  }
  .dt-notice {
    @color: #31b0d5;
    color: darken(@color, 20%);
    background: fade(@color, 30%);
    border-color: @color;
    .stacktrace-item(@color);

  }
  .dt-undefined,
  .dt-strict,
  .dt-deprecated {
    @color: #cccccc;
    color: darken(@color, 20%);
    background: fade(@color, 30%);
    border-color: @color;
    .stacktrace-item(@color);
  }


}

.dbt-ref-table {
  width: 100%;
  border-width: 0;
  th {
    text-align: center;
  }
  td, th {
    border-style: solid;
    border-color: #ededed;
    border-width: 1px 0 0 0;
    padding: 6px 10px 6px;
    font-size: 12px;
    font-family: 'Open Sans', 'Arial', sans-serif;
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
}


.dbt-ref-table-queries {
  table-layout: auto;
  th, td {

  }
  th {
    cursor: pointer;
  }
  td {
    &:first-child {
      width: 40px;
      text-align: center;
    }
    &:last-child {
      width: 50px;
      text-align: center;
    }
  }
  .header {
    position: relative;
    padding-right: 20px;
    &:after {
      content: '';
      box-sizing: content-box;
      position: absolute;
      width: 0;
      height: 0;
      margin: -6px -3px;
      top: 50%;
      right: 10px;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-right: 6px solid @color-2;
      border-left: none;
      transition: .2s transform;
    }
    &.headerSortDown {
      &:after {
        transform: rotate(90deg);
      }
    }
    &.headerSortUp {
      &:after {
        transform: rotate(-90deg);
      }
    }
  }
}

.dbt-ref-actions {
  td  {
    vertical-align: top;
    text-align: left;

    &.priority {
      width: 40px;
      text-align: center;
    }
    & > .dbt-ref-table {
      margin: 0;
      tr:first-child {
        td {
          border-top: none;
        }
      }
    }

    li {
      margin: 0 0 5px 0;
    }
  }
}

#dbt_image_puller {
  .images-list {
    li {

    }
    img {
      display: inline-block;
      vertical-align: middle;
      max-width: 50px;
      max-height: 50px;
    }
  }

}