@import "./mixins.scss";
@import "./colors.scss";

* {
  box-sizing: border-box;
}

.dynamic-mode-icon {
  position: absolute;
  top: -40px;
  right: 27px;
}

body {
  @include normal-font();
  line-height: 1.6;
}

button {
  cursor: pointer !important;
}


.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.fade-enter-to,
.fade-leave {
  opacity: 1;
}

.fade-enter-active {
  transition: all 1s ease
}

.fade-leave-active {
  transition: all 0.5s ease
}

.ui-checkbox--color-primary.is-checked .ui-checkbox__checkmark-background {
  background-color: $c-main !important;
  border-color: $c-main !important;
}

.ui-checkbox.is-checked .ui-checkbox__checkmark::after {
  border-bottom: 0.15rem solid $c-white !important;
  border-right: 0.15rem solid $c-white !important;
  opacity: 1;
}

.ui-checkbox-group__checkboxes {
  flex-wrap: wrap;
}

.ui-checkbox-group__item {
  margin: 8px 15px 8px 0 !important;
}

.container {
  position: relative;
  max-width: 800px;
  padding: 32px 10px;
  width: 100%;
  margin: 0 auto;
}

.ui-textbox .ui-textbox__input,
.ui-textbox .ui-textbox__textarea,
.custome-datepicker-input {
  @include respOnly(sm) {
    font-size: 16px !important;
    min-height: 40px !important;
  }
}

.ui-select__search {
  position: relative;
}


.sidebar-alert {
  margin-top: 10px;
  padding-right: 35px;
}

.app-type__select,
.element-type__select {
  max-height: 36px;
  margin-top: 10px;
  display: flex;
}

.form-builder {
  background-color: #fff;
  display: flex;
  min-height: 500px;

  &__main {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    // max-height: 80vh;
    display: block;
    overflow: hidden;
    overflow-y: auto;
  }
}

.settings-sidebar {
  position: relative;
  flex: 0 0 35%;
  // padding-top: 15px;
  min-width: 35%;
  padding-right: 32px;
  min-height: 100%;
  margin-bottom: 32px;

  .list-item {
    padding-top: 0 !important;
    margin-bottom: 10px;
  }
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;

  &__label {
    color: rgb(30, 35, 43);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
  }

  &__select {
    margin: 0;
    min-width: 160px;
  }
}

.blocks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;

  &__content {
    display: flex;
    align-items: center;
  }

  &__label {
    color: rgb(30, 35, 43);
    font-size: 14px;
    font-weight: 600;
    margin: 0 16px 0 0;
  }

  &__select {
    margin: 0;
    min-width: 160px;
  }
}

.blocks-container {
  /*   max-height: 400px; */
  overflow-y: scroll;
  border-radius: 4px;
  /*   border: 1px solid #dfdfdf; */
  flex: 0 0 65%;
  min-width: 65%;
  padding-top: 0; // 9px;
}

.block-data {
  &__wrapper {
    background: rgb(246, 246, 246);

    /*     border: 1px solid rgb(223, 223, 223); */
    padding: 32px 16px;
  }
}

.no-blocks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px dashed rgb(145, 150, 157);
  border-radius: 2px;
  min-height: 150px;

  &__emoji {
    font-size: 32px;
    margin-bottom: 16px;
  }

  h2 {
    color: rgb(145, 150, 157);
    // rgba(var(--sk_primary_foreground, 29, 28, 29), 1);
    font-size: 14px;
    /*     padding: 20px; */
    font-weight: bold;
    line-height: 21px;
    text-align: center;
    margin: auto;
  }

  p {
    color: rgb(145, 150, 157);
    font-size: 12px;
    font-weight: normal;
    line-height: 18px;
    margin: 0;
  }

  .block-kit-preview__wrapper {
    margin-top: 50px;
  }

  .block-kit-preview__divider {
    border: 1px solid #dfdfdf;
  }
}

.vue-slider .vue-slider-dot {
  z-index: 1;
}

.readonly-field {
  pointer-events: none;
  cursor: not-allowed;
}

merge-tag {
  color: #64b2da;
}

// fixes for web-form in dark-mode css
.theme-dark .web-form .ui-textbox.is-active:not(.is-disabled) .ui-textbox__input,
.ui-textbox.is-active:not(.is-disabled) .ui-textbox__textarea,
.theme-dark .web-form .ui-textbox .ui-textbox__feedback-text,
.theme-dark .web-form .ui-select .ui-select__feedback-text,
.theme-dark .web-form .ui-switch__help-text,
.theme-dark .web-form .item__text,
.theme-dark .web-form .ui-radio-group:not(.is-disabled):not(.is-invalid):hover .ui-radio-group__label-text,
.theme-dark .web-form .ui-checkbox-group:not(.is-disabled):not(.is-invalid):hover .ui-checkbox-group__label-text,
.theme-dark .web-form .ui-radio-group__feedback-text,
.theme-dark .web-form .ui-checkbox-group__feedback-text {
  color: #f6f6f6;
}