/*
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 Meeds Association
contact@meeds.io
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/
@import "../../../variables.less";
@import "../../../mixins.less";

.uiBrandingPortlet {
  margin-left: 13% ~'; /** orientation=lt */ ';
  margin-right: 13% ~'; /** orientation=rt */ ';
  margin-right: 10% ~'; /** orientation=lt */ ';
  margin-left: 10% ~'; /** orientation=rt */ ';
  margin-top: 18px;
  border-radius: 66px;
  padding: 10px 10px;

  > .boxContent {
    padding: 10px 0;

    > h4 {
      font-weight: bold;
    }

  }

  h4 {
    margin-top: 20px;
  }

  .alert {
    display: none;
    left: 57% ~'; /** orientation=lt */ ';
    right: 57% ~'; /** orientation=rt */ ';
    position: absolute;
    transform: translate(-50%);
    margin-top: 0;
  }

  #companyNameInput {
    margin-bottom: 0px;
  }

  .inputCompany {
    margin-top: 4px;
    margin-left: -9px ~'; /** orientation=lt */ ';
    margin-right: -9px ~'; /** orientation=rt */ ';
    width: 32%;
    border: 0px;
  }

  .button_back {
    width: 42%;

    .linkBack {
      float: right;
      color: @errorColor;
      text-decoration: underline;
      text-transform: uppercase;

      > i {
        padding: 2px;
        margin-top: 4px;
      }
    }
  }

  .theme {
    margin-left: -8px ~'; /** orientation=lt */ ';
    margin-right: -8px ~'; /** orientation=rt */ ';
    margin-top: 40px;
  }

  .themeLabel {
    > h4 {
      font-weight: bold;
    }
  }

  .colorsBlock {
    margin-left: 5% ~'; /** orientation=lt */ ';
    margin-right: 5% ~'; /** orientation=rt */ ';
  }

  #companyNameInput:focus {
    border: Solid 1px var(--allPagesGreyColor, @greyColorDefault);
  }

  .labelStyle {
    margin-bottom: 3px;
    font-weight: bold;
  }

  .logoForm {
    border-radius: 7px;
    background-color: @lightWhite;
    padding: 1px 10px 0px 21px ~'; /** orientation=lt */ ';
    padding: 1px 21px 0px 10px ~'; /** orientation=rt */ ';

    .styleSelectLogo {
      margin-top: -8px;
      font-weight: bold;
    }

    .labelLocation {
      margin-top: -6px;
      margin-bottom: 26px;
    }

    .info {
      color: @baseColorLight;
      background-color: transparent !important;
      padding-left: 2px ~'; /** orientation=lt */ ';
      padding-right: 2px ~'; /** orientation=rt */ ';
      font-size: 12px;
      font-style: italic;

      > p {
        margin-bottom: 0px;
        color: @textLightColor;
        font-size: 12px;
      }
    }

    .btnAction {
      display: none;
    }

    .previewLogo {
      display: flex;
      flex-direction: row;
      border: 1px solid white;
      border-radius: 8px;
      width: 395px;

      .btnActionContainer {
        min-width: 20px;
      }
      .logoPreviewImage {
        align-self: center;

        .previewImg {
          padding: 52px;
          height: 121px;
        }
      }
    }

    .previewLogo:hover {
      border: 1px solid darkgrey;

      .btnAction {
        display: block;
        float: right ~'; /** orientation=lt */ ';
        float: left ~'; /** orientation=rt */ ';
        margin-bottom: -12px;
        z-index: 999;

        .iconDelete {
          color: @primaryColorDefault;
          float: right;
          margin-right: 6px ~'; /** orientation=lt */ ';
          margin-left: 6px ~'; /** orientation=rt */ ';
          margin-top: 9px;
          cursor: pointer;
        }

        .iconEdit {
          float: right ~'; /** orientation=lt */ ';
          float: left ~'; /** orientation=rt */ ';
          margin-right: 6px ~'; /** orientation=lt */ ';
          margin-left: 6px ~'; /** orientation=rt */ ';
          margin-top: 5px;
          cursor: pointer;
        }
      }
    }

    .progress {
      width: 250px;
      height: 20px;
      padding: 0px 15px;
      margin: 0px 60px;
      background: none;

      &.upload-completed {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 3s, opacity 2s 1s linear;
      }
    }

    #navigationStyle .uiRadio {
      padding-right: 20px ~'; /** orientation=lt */ ';
      padding-left: 20px ~'; /** orientation=rt */ ';
    }

    .uiAction {
      padding: 23px 15px;
      text-align: end;
    }

    #StylePreview {
      width: 90%;
      padding: 30px 0px;
      margin: auto;
    }

    .fileDrop {
      padding-top: 6px;

      &, [class^="uiIcon"] {
        color: @primaryColor;
      }

      .dropZone {
        height: 211px;
        width: 367px;
        border-radius: 5px;
        border: 3px dashed @skeletonColor;
        font-size: 14px;
        align-items: center;
        justify-content: center;
        display: flex;
        padding: 5px 10px;

        .attachment {
          text-align: center;

          > i {
            color: @textLightColor;
          }

          > label {
            margin-top: 10px;
            font-size: 16px;
            color: @textLightColor;
          }
        }

        .option {
          display: flex;
          flex-direction: row;
          text-align: center;
          margin-top: 10px;
          margin-bottom: 10px;

          .closeOption {
            width: 15%;
          }

          .optionStyle {
            width: 15%;
            margin-left: 15% ~'; /** orientation=lt */ ';
            margin-right: 15% ~'; /** orientation=rt */ ';
          }

          .labelValue {
            padding: 9px;
            text-transform: uppercase;
            color: @skeletonColor;
          }
        }

        .upload {
          text-align: center;

          .iconUpload {
            > i {
              color: @primaryColorDefault;
            }
          }

          > i {
            color: @textLightColor;
          }

          > label {
            margin-top: 10px;
            font-size: 16px;
            color: @textLightColor;
          }
        }
      }

      .attachFileIcon:before {
        content: "\e780";
        font-weight: bold;
      }

      .attachFile {
        display: none;
      }
    }

    .dropMsg [class^="uiIcon"] {
      color: @primaryColor;
    }
  }

}

.themeColor {
  display: flex;
  flex-direction: row;

  .colorSelected {
    width: 47px;
    height: 47px;
    margin-top: 5px;
    margin-right: 10px ~'; /** orientation=lt */ ';
    margin-left: 10px ~'; /** orientation=rt */ ';
    cursor: pointer;
    border: 1px solid @greyColor;
  }

  .themeDetails {
    .labelColor {
      font-style: oblique;
      font-size: 16px;
      color: @textLightColor;
      margin-bottom: 7px;
      margin-top: 3px;
    }

    .colorCode {
      cursor: pointer;
    }
  }

}
