@import "variables";
$credentialBaseHeight: 252px;
:host {
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
  min-height: 160px;

  .label-row {
    padding-bottom: 24px;
  }

  .cred-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid $blue-100;

    .label {
      display: inline-block;
      width: 155px;
      padding: 6px 0;
      color: #71758a;
    }

    .value {
      color: $blue-400;
    }
  }

  .credentials-and-code {
    overflow: hidden;
    transition: max-height 1s ease;
    .code-container{
      height: $credentialBaseHeight;
      transition: height 1s ease;
      &.jupyter{
        height: $credentialBaseHeight - 50;
      }
    }

    &.small-popup {
      max-height: 0;
    }
    .config-nav {
      height: 36px;
      margin-top: 24px;
      display: flex;
      border-bottom: 1px solid $blue-100;
      justify-content: center;

      sm-navbar-item {
        height: 100%;
      }
    }
  }

  .instructions {
    line-height: 1.3;
    color: $blue-500;
  }

  .code {
    position: relative;
    line-height: 1.5;
    padding: 16px 16px;
    margin-bottom: 24px;
    color: $blue-100;
    background-color: $blue-700;
    border-radius: 4px;

    &:hover {
      sm-copy-clipboard {
        visibility: visible;
      }
    }

    .content {
      width: 100%;
      font-family: monospace;
      font-size: 12px;
    }

    .operation {
      color: #b087e5;
    }

    .string {
      color: #e6db74;
    }

    .variable {
      color: #9ed66b;
    }

    .comment {
      color: $blue-500;
    }

    sm-copy-clipboard {
      visibility: hidden;
      position: absolute;
      right: 10px;
      top: 10px;
    }
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 32px;
    margin-top: auto;

    button[disabled] {
      pointer-events: none;
    }
  }
}

form {
  display: flex;
}

.label-input {
  display: inline-block;
  width: 452px;
  margin-right: 12px;
}

.label-button {
  height: 36px;
  flex: 1 0 152px;
}

//.indent {
//  margin-left: 30px;
//}
//.indent2 {
//  margin-left: 60px;
//}
