$dark: #193250;
$fontColor: #b2d4f9;
.dark {
  color: #333333;

  .userName {
    color: #bfbfbf !important;
  }

  //UI框架
  .ant-table-thead > tr > th {
    background-color: #203d5b;
    color: #aaa;
  }

  .ant-layout-sider {
    background-color: $dark;
  }

  .layout .ant-menu-submenu > .ant-menu {
    background-color: #234163;
  }

  .ant-table-thead > tr.ant-table-row-hover > td, .ant-table-tbody > tr.ant-table-row-hover > td, .ant-table-thead > tr:hover > td, .ant-table-tbody > tr:hover > td {
    background: #30547a;
  }

  input[type="text"], input[type="password"], .input[type="number"], textarea, .ant-select {
    color: $fontColor;
  }

  .ant-table-placeholder {
    background: #2966a5;
    border-bottom: 1px solid $fontColor;
    color: $fontColor;
  }

  .gray-font-color {
    color: $fontColor;
  }

  .blue-font-color {
    color: #7bcefb;
  }
  .ant-input::-webkit-input-placeholder{
    color: #757575;
  }

  .main-color {
    color: $fontColor;
  }

  .ant-table-tbody > tr > td, .ant-tree li {
    color: $fontColor;
  }

  .container {
    height: calc(100% + 50px);
    padding: 0 16px;
    background-image: url("../../content/images/dark-bg-img.png");
    background-size: cover;
    min-height: 100%;
  }

  .layout .ant-menu {
    background-color: $dark;
  }

  nz-header {
    background: $dark;
    padding: 0 16px;
  }

  .ant-btn {
    background-color: #255fb2;
    color: #f5f5f5;
  }

  input[type="text"], input[type="password"], input[type="number"], textarea,
  .ant-select {
    background-color: #243f5b;
    border: 1px solid #6c8cad;
  }

  .ant-calendar, .ant-calendar-input, .ant-select-selection__clear {
    background: #cccccc;
  }

  .ant-radio-button-wrapper {
    background: none;
    color: $fontColor;
  }

  .ant-radio-button-wrapper-checked {
    background: #193250;
    color: $fontColor;
    border-color: $fontColor
  }

  .ant-select-dropdown {
    background-color: #215a87;
  }

  .ant-select-arrow, .ant-calendar-picker-icon:after, .ant-select-selection__clear {
    color: #cccccc;
  }

  .ant-select-selection, .ant-input {
    background-color: #215a87;
    color: $fontColor;
  }

  .ant-select-dropdown-menu-item {
    color: $fontColor;
    background-color: #215a87;
  }


  //自己写的
  //主机详情
  .layout {
    background-color: #193250;
  }

  .host-item-title {
    background-color: $dark;
    color: #f2f2f2;
    padding: 10px 15px;
    height: 50px;
    line-height: 30px;
  }

  .database-name {
    border: 1px solid #b7d1f1;
    color: #b7d1f1;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
  }

  .host-item-content {
    background-color: rgba(0, 0, 0, .2);
    color: #b7cfea;
    padding: 10px;
    height: 400px;
    position: relative;

    nz-row {
      nz-col:nth-child(2n +1) {
        color: $fontColor;
        text-align: right;
        margin-bottom: 10px;
      }

      nz-col:nth-child(2n) {
        color: #7bcefb;
        text-align: left;
        margin-bottom: 10px;
      }
    }
  }

  .host-item-table {
    background-color: rgba(0, 0, 0, .2);
    color: #b7cfea;
    padding: 10px;
    height: 400px;

    nz-col {
      padding: 6px 10px;
      word-break: break-all;
    }

    .table-title {
      background-color: rgba(0, 0, 0, .4);

      nz-col {
        border: 1px solid #597cb5;
      }
    }

    .table-content {
      border-bottom: 1px solid #597cb5;
    }
  }

  .dataChart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-size: 12px;

    p {
      margin-bottom: 10px;
    }

    p:nth-child(2n) {
      text-align: right;
      border-bottom: 1px solid #b7d1f1;
    }

    p:nth-child(2n +1) {
      text-align: left;
    }
  }

  .time-group {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 9;
  }

  .width-host {
    position: relative;
    width: 80%;
    margin: 0 auto;
    background-color: #5489b2;
    height: 23px;

    .space {
      height: 23px;
      background-color: #4ccf46;
      transition: all 500ms;
    }
  }

  .topology-context {
    background: #132c4c;
  }

  .host-number {
    color: #10348e;
    margin-left: 10px
  }
}
