@use 'variables';


#layout_demo {
  .app-theme-light & {
    background: #fff;
  }

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

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

.layout-split {
  .navbar {
    background: #1b1d27;
    color: white;

    .navbar-brand {
      .navbar-item {
        padding: 10px;
        margin-left: 16px;

        i {
          font-size: 24px;
        }
      }
    }

  }

  .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-top: 24px;
    margin-bottom: 16px;

    .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;
  }

  .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 {
    background: linear-gradient(70deg, #07397C -37.98%, #1767AD 17.98%, #255B8E 53.85%);
    @extend .nav-button !optional;
    //width: 100%;
    //text-align: center;
    display: flex;
    width: 284px;
    height: 44px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;


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

    .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;
      }
    }
  }

  .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;
      max-height: 80vh;
    }

    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;

      &: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.5em;


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

      .active-peak {
        visibility: hidden;
      }

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

      .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: 1000px;
  }

  .chatbot-container-box {
    margin-right: 100px;
  }

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

  .chat {

    background: variables.$bg-color-chat;
    text-align: center;
    padding: variables.$spacing-1;

    border-radius: 10px;


    &.column {
      border-radius: 10px;

    }


    .panel-more {
      background: variables.$bg-color-chat;
      padding-top: 0 !important;

      width: 0;
      display: none;

      .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: 10px;
      padding-left: 200px;
      padding-right: 200px;
      overflow: auto;
      min-width: 915px;
    }

    .main-conversation-container {
      margin-right: 16px;
      padding-top: 88px;
    }

    .app-theme-light & {

      background: #F5F5F5;

    }

    .app-theme-dark & {

      background: #2c2c2c;
      color: #d5d5d5;

      .message {

        &.user {
          background: #232432;
          color: #8b8ecf;
        }

        &.llm {
          background: #232432;

          .message-content {
            color: #8b8ecf;

          }

          .actions {

            .button {
              background: #0d0e15;
              color: grey;
            }
          }

        }
      }

    }

    .app-theme-funky & {
      color: #1B1D27;
      background: #ffe8e8;

      .message {
        .message-content {
          color: #fff3f3;
        }

        &.user {
          background: #d6a3a3;
          color: #1B1D27;
        }

        &.llm {

          background: #9f36bc;
          color: #bba7d6;

          .actions {

            .button {
              background: #b08eba;
              color: #d4b4ff;
            }
          }

        }
      }

    }

    .message {

      &.user {
        background: variables.$neutral-white;
      }

      &.llm {
        background: rgba(#3B87CC1A, 10%);

      }
    }
  }


}

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

    &.panel-more {
      &.expanded {
        width: 300px;
        flex-basis: 300px;
      }
    }
  }
}

.conversation-bottom {
  padding: 10px;
}

.bottom-warning-container {
  margin-left: 70px;
  margin-top: 18px;
  //position: relative;
  bottom: 12px;
  //left: 12px;

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