@import "./../styles/index.scss";

.settings-alias-header {
  width: 100%;
  height: 41px;
}
.settings-alias-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 450px;
  margin: auto;
  height: calc(100% - 91px);

  .settings-alias-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
  }

  .settings-alias-desc {
    font-size: 15px;
    text-align: center;
    width: 310px;
    margin-top: 17px;
  }

  .settings-alias-input {
    width: 400px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    position: relative;
    justify-content: space-between;

    span {
      font-size: 12px;
      font-weight: 500;
      display: inline-block;
      margin: 0px 5px;

      &.alias-error {
        position: absolute;
        bottom: -20px;
      }
    }

    input { 
      width: 170px;
      height: 26px;
      border-radius: 4px;
      border: solid 1px;
      padding-left: 5px;
      padding-right: 5px;
      background-color: transparent;
    }

    select { 
      width: 182px;
      height: 30px;
      border-radius: 4px;
      border: solid 1px;
      background-color: transparent;
    }
  }

  .settings-alias-buttons {
    margin-top: 40px;
    height: 28px;

    .button-cancel {
      background-color: transparent;
    }

    button {
      width: 91px;
      font-size: 13px;
      height: 28px;
      border-radius: 14px;
      font-weight: bold;
    }
  
    .button-confirm {
      background-color: #0091ff;
      color: white
    }
  }

  .loading-ring{
    top: 0px;
    left: -1px;
    height: 28px;
    width: 24px;
    margin-top: 40px;
  }
}

/* THEME
  ----------------------------- */
  @mixin themable(
  $_THEME,
  $_COLOR_TEXT_MAIN_TITLE,
  $_BACKGROUND_COLOR_SETTINGS_TITLE,
  $_COLOR_TEXT_SETTINGS_CONTENT,
  $_BORDER_COLOR_POPUP_INPUT
) {
  [data-theme^="#{$_THEME}"],
  [data-theme] [data-theme^="#{$_THEME}"] {
    .settings-alias-header {
      background-color: $_BACKGROUND_COLOR_SETTINGS_TITLE;
    }
    .settings-alias-content {
      .settings-alias-title { 
        color: $_COLOR_TEXT_MAIN_TITLE
      }

      .settings-alias-desc {
        color: $_COLOR_TEXT_SETTINGS_CONTENT;
      }
    
      .settings-alias-input {
        span {
          color: $_COLOR_TEXT_MAIN_TITLE;

          &.alias-error {
            color: #fb6363;
          }
        }
    
        input { 
          border-color: $_BORDER_COLOR_POPUP_INPUT;
        }
    
        select { 
          border-color: $_BORDER_COLOR_POPUP_INPUT;
        }
      }

      .settings-alias-buttons {      
        .button-cancel {
          color: $_COLOR_TEXT_MAIN_TITLE;
        }
      }
    }
  }
}
  
@include themable(
  $_THEME_LIGHT,
  $_COLOR_TEXT_MAIN_TITLE_LIGHT,
  $_BACKGROUND_COLOR_SETTINGS_TITLE_LIGHT,
  $_COLOR_TEXT_SETTINGS_CONTENT_LIGHT,
  $_BORDER_COLOR_POPUP_INPUT_LIGHT
);
@include themable(
  $_THEME_DARK,
  $_COLOR_TEXT_MAIN_TITLE_DARK,
  $_BACKGROUND_COLOR_SETTINGS_TITLE_DARK,
  $_COLOR_TEXT_SETTINGS_CONTENT_DARK,
  $_BORDER_COLOR_POPUP_INPUT_DARK
);
