.integrations-page-wrapper {
  .settings-menu {
    ul li {
      > span:first-child {
        svg {
          width: 20px;
          height: 20px;
        }
      }
    }
  }

  .settings-content-area {
    width: 100%;
  }

  .dnxte-save-btn {
    margin-top: 20px;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    padding: 9px 22px;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    color: $dash-white;
    background: $dash-active;
    border: none;

    &:focus {
      box-shadow: none;
      outline: none;
    }

    &:hover {
      background: $dash-active-two;
    }

    &:disabled {
      cursor: not-allowed;
      background: #ebe9fe;
      color: #7a5af8;
    }
  }
}

.integration-content-wrap {
  .settings-main-content-wrap {
    padding: 20px;
    background: $dash-white;
    border-radius: 8px;
    overflow: hidden;

    h3 {
      margin: 0;
      position: relative;
      padding-bottom: 20px;
      margin-bottom: 20px;
      font-size: 16px;
      font-weight: 600;
      color: $dash-main-title;

      &::before {
        position: absolute;
        left: -20px;
        right: -20px;
        bottom: -2px;
        content: "";
        background: #eff1f5;
        height: 1px;
      }
    }
  }

  .integration-section {
    h4 {
      margin: 0 0 8px;
      font-size: 14px;
      font-weight: 500;
      line-height: 16px;
      color: $dash-main-title;
    }

    .integration-desc {
      color: $dash-pra;
      font-size: 12px;
      font-weight: 400;
      line-height: 16px;
      margin-bottom: 20px;
      margin-top: 0;
    }
  }

  .integration-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    max-width: 638px;

    label {
      width: 243px;
      min-width: 243px;
      font-size: 12px;
      font-weight: 500;
      line-height: 14px;
      color: $dash-main-title;
      display: flex;
      align-items: center;
      gap: 10px;

      .key-saved-badge {
        display: inline-flex;
        align-items: center;
        font-size: 10px;
        font-weight: 500;
        background: #E6FCF5;
        color: #12B886;
        border: 1px solid #12B886;
        padding: 4px 8px;
        border-radius: 2px;
      }
    }

    .password-field-wrap {
      position: relative;
      flex: 1;

      input {
        width: 100%;
        padding-right: 35px;
      }

      // Style for saved key - shows masked stars
      &.has-saved-key {
        input {
          color: $dash-main-title;
          letter-spacing: 2px;
          font-family: monospace;

          &:read-only {
            background-color: #f8f9fb;
            cursor: default;
          }
        }
      }

      .password-visibility {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: $dash-pra;

        &:hover {
          color: $dash-active;
        }

        svg {
          font-size: 14px;
        }
      }
    }

    input[type="text"],
    input[type="password"],
    select {
      flex: 1;
      font-size: 12px;
      line-height: 14px;
      color: $dash-main-title;
      border-width: 1px;
      border-style: solid;
      border-color: #dcdfea;
      outline: none;
      background: $dash-white;
      padding: 0 10px;
      height: 32px;
      border-radius: 4px;

      &::placeholder {
        color: #7d89b0;
      }

      &:focus {
        border-color: $dash-active-two;
        outline: none;
        box-shadow: none;

        &::placeholder {
          color: $dash-main-title;
        }
      }
    }

    select {
      cursor: pointer;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6b98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      padding-right: 30px;
      background-color: $dash-white;
    }
  }
}
