@use 'variables';


#layout_demo {
  .app-theme-light & {
    background: variables.$white;
  }

  .app-theme-dark & {
    background: #333;
  }

  .app-theme-funky & {
    background: #ffe1e1;
  }
}

.navbar {
  background: #1b1d27;
  color: white;
  height: 60px;

  .navbar-item {
    padding-left: 24px;
    padding-right: 24px;

    &:last-of-type {
      padding-right: 32px;
    }

    &.user-account-item {

      background: #525668;
      color: white;
    }

    &.is-active {
      border-bottom: 2px solid #7FB8E7;
      color: #7FB8E7;
    }

    &:hover {
      background: #3B3E4D;
      border-bottom: 2px solid #7FB8E7;
    }
  }

  .navbar-brand {
    margin-right: 35px;

    .navbar-item {
      padding: 10px;
      margin-left: 16px;
      border-bottom: 2px solid transparent;


      i {
        font-size: 24px;
      }


    }
  }

  .label {
    color: #FFF;
    font-family: Barlow;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    margin-top: -0.25em;
  }


}

.layout-split {


  .navigation {
    background: variables.$bg-color-nav;
    color: variables.$neutral-white;
    padding: variables.$spacing-1;


  }

  .nav-button {
    width: 44px;
    padding: 14px;
    margin: 16px;
    border-radius: 12px;
    color: white;
  }

  #newChatBar {
    margin: 20px 0;


    .is-expanded-left & .column-conversation {
      width: variables.$large-column-panel;
      flex-basis: variables.$large-column-panel;
      padding-right: 32px;
    }

    .column-main {
      width: 1193px;
      padding-top: 32px;

      .title {
        margin-left: 16px;
      }

      .export-chat-button {
        float: right
      }

    }
  }

  .new-chat-title {
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    display: block;

    .chips {

    }

    .title {
      float: left;
    }

    .action {
      float: right;
      margin-top: -1.8em;
    }
  }

  .search-button {
    background: #f4f6fc;
    @extend .nav-button !optional;
    margin: 0 16px 0;
    color: #1B1D27;

    .funnel {
      display: inline-block;
      float: right;
      height: 16px;
      //background: blue;
    }

    &.is-expanded {
      width: calc(100% - 12px);
      margin-right: 12px;
    }
  }

  .new-button {
    cursor: pointer;
    background: linear-gradient(70deg, #07397C -37.98%, #1767AD 17.98%, #255B8E 53.85%);
    @extend .nav-button !optional;
    @extend .is-clickable !optional;
    display: flex;

    height: 44px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    &:hover {
      background: blue;
      color: white;
    }

    i {
      width: 20px;
      margin-right: 10px;
      margin-left: 10px;
      float: left;

      .is-expanded-left & {
        margin-left: 0;
      }
    }

    .label {
      display: none;
      color: #FFF;
      text-align: center;
      font-size: 20px;
      font-style: normal;
      font-weight: 500;
      line-height: 100px;

      .is-expanded-left & {
        display: block;
        width: 50%;
        float: left;
      }

    }

    .is-expanded-left & {
      width: 284px;
    }
  }

  .admin-actions {
    padding: 0 12px 12px;
    margin-left: 12px;
  }

  .column-conversation {
    padding: 0 12px;
    width: 90px;

    .is-expanded-left & {
      width: variables.$large-column-panel;
      flex-basis: variables.$large-column-panel;
      padding-right: 22px;
    }

    .conversation-container {
      padding-left: 12px;
      min-height: 90vh;

      .actions {
        position: relative;
        top: 0;
        right: 0;
        background: white;
        width: 24px;
        height: 24px;
        border-radius: 8px;
        float: right;

        .trash {
          color: red;
          fill: red;
        }

        .menu {
          cursor: pointer;
          text-align: right;

          i {
            font-size: 1.2rem;
          }
        }

        .dropdown {
          .dropdown-menu {
            right: 0;
            left: auto;
          }

          .dropdown-item {
            i {
              margin-right: 0.5rem;
            }
          }

          &.is-hoverable:hover {
            .dropdown-menu {
              display: block;
            }
          }
        }

        button {
          background: transparent;
          border: none;
          display: none;
          cursor: pointer;

          &:hover {
            background: variables.$primary-color;
            color: white;
          }
        }

        &:hover {
          button {
            display: block;
          }
        }
      }
    }

    input {
      display: none;

      &.is-visible {
        display: block;
      }
    }

    .conversation-item {
      margin-bottom: 16px;
      margin-top: 16px;
      padding: 16px 16px 18px 32px;

      cursor: pointer;
      border-radius: 8px;
      color: #6D717C;

      .actions {
        width: 28px;
        height: 28px;
        padding: 4px;
        border-radius: 6px;
        background: #B9D6ED;
      }

      &:hover {
        background: #3B87CC1A;
      }


      &.is-active {
        background: rgba(#3B87CC1A, 10%);
        font-weight: 600;

        .active-peak {
          position: relative;
          right: calc(-100% - 16px);
          top: -35px;
          visibility: visible;
        }
      }


      .pinned-icon {
        position: relative;
        left: -1.7em;

        i {
          color: #FEC553;
          fill: #FEC553;
        }
      }

      .active-peak {
        visibility: hidden;
      }

      .name {
        color: #1E1F22;
        font-size: 14px;
        font-weight: 600;
        display: block;
        margin-bottom: 4px;
        margin-top: -1.5em;
        margin-left: 0;
      }

      .description {
        color: #6D717C;
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
        margin-right: 4px;
      }

      .date {
        color: rgba(#5F5F5F99, 60%);
        float: right;
        text-align: right;
        font-family: Barlow;
        font-size: 10px;
        font-style: normal;
        font-weight: 400;
        line-height: 8px;
        margin-top: -1.5em;
      }

    }

  }


  .chat-column {

    min-width: 900px;

    .is-small-right & {
      min-width: 1200px;
    }

  }

  .chatbot-container-box {
    margin-top: 38px;
    margin-right: 84px;
  }

  .conversation-title {
    font-size: 1.5rem;
    font-weight: 500;
    padding: 16px;
    text-align: left;
  }

  .chat {


    text-align: center;
    padding: variables.$spacing-1;

    border-radius: 10px;


    &.column {
      border-radius: 10px;

    }


    .panel-more {
      background: variables.$bg-color-chat;
      width: 0;
      display: none;
      padding-top: 24px;


      .export-chat-button {
        margin-top: 16px;
        margin-bottom: 16px;
        float: right;
        display: inline-block;
      }

      .is-expanded-right & {
        width: variables.$large-column-panel !important;
        margin-left: 10px;

      }

    }


    .conversation-messages-container {
      min-height: 600px;
      max-height: 90vh;
      margin: 0 auto;
      padding-top: 50px;
      padding-left: 60px;
      padding-right: 60px;
      overflow: auto;
      min-width: 915px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }

    .main-conversation-container {

      height: 100vh;
      padding-top: 88px;
      border-radius: 10px;
      background: variables.$bg-color-chat;
    }

  }


}

.columns {
  .column {
    padding-top: 0;

    &.panel-more {
      width: 0px;
      display: none;
      margin-top: 16px;

      &.expanded {
        width: 516px;
        flex-basis: 516px;
        display: block;
      }
    }
  }
}

.conversation-bottom {
  padding: 60px;
  margin-top: -100px;
}

.bottom-warning-container {
  margin-left: 70px;
  margin-top: 18px;
  margin-bottom: -110px;
  bottom: 12px;

  .is-expanded-left & {
    left: 300px;
  }
}
