.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.historyContainer {
    width: 20vw;
    background: radial-gradient(108.78% 108.78% at 50.02% 19.78%, #FFFFFF 57.29%, #EEF6FE 100%);
    border-radius: 8px;
    max-height: calc(100vh - 88px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12);
    overflow-y: hidden;
}
.chatRoot {
    flex: 1;
    display: flex;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    gap: 20px;
}

.chatHistoryListContainer {
    height: 100%;
}
.chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(108.78% 108.78% at 50.02% 19.78%, #FFFFFF 57.29%, #EEF6FE 100%);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 88px);
}
.loadingContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
  }

  .loadingIcon {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

.chatEmptyState {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chatEmptyStateTitle {
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    display: flex;
    align-items: flex-end;
    text-align: center;
    margin-top: 24px;
    margin-bottom: 0px;
}

.chatEmptyStateSubtitle {
    margin-top: 16px;
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    display: flex;
    align-items: flex-end;
    text-align: center;
    letter-spacing: -0.01em;
    color: #616161;
}

.chatIcon {
    height: 62px;
    width: 62px;
}

.chatMessageStream {
    flex-grow: 1;
    max-width: 1028px;
    width: 100%;
    overflow-y: auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
}

.chatMessageUser {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.chatMessageUserMessage {
    padding: 20px;
    background: #EDF5FD;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12);
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #242424;
    flex: none;
    order: 0;
    flex-grow: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 800px;
}

.chatMessageGpt {
    margin-bottom: 12px;
    max-width: 80%;
    display: flex;
}

.chatInput {
    position: sticky;
    flex: 0 0 100px;
    padding-top: 12px;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    width: calc(100% - 100px);
    max-width: 1028px;
    margin-bottom: 50px;
    margin-top: 8px;
}

.clearChatBroom {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px;
    position: absolute;
    width: 40px;
    height: 40px;
    left: 12px;
    top: 66px;
    color: #FFFFFF;
    border: 1px solid #D1D1D1;
    border-radius: 20px;
    z-index: 1;
}

.stopGeneratingContainer {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 5px 16px;
    gap: 4px;
    position: absolute;
    width: 161px;
    height: 32px;
    left: calc(50% - 161px/2 + 25.8px);
    bottom: 116px;
    border: 1px solid #D1D1D1;
    border-radius: 16px;
}

.stopGeneratingIcon {
    width: 14px;
    height: 14px;
    color: #424242;
}

.stopGeneratingText {
    width: 103px;
    height: 20px;
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    color: #242424;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.citationPanel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 16px;
    gap: 8px;
    background: #FFFFFF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    flex: auto;
    order: 0;
    align-self: stretch;
    flex-grow: 0.3;
    max-width: 30%;
    overflow-y: scroll;
    max-height: calc(100vh - 100px);
}

.citationPanelHeaderContainer {
    width: 100%;
}

.citationPanelHeader {
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.citationPanelDismiss {
    width: 18px;
    height: 18px;
    color: #424242;
}

.citationPanelDismiss:hover {
    background-color: #D1D1D1;
    cursor: pointer;
}

.citationPanelTitle {
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #323130;
    margin-top: 12px;
    margin-bottom: 12px;
}

.citationPanelContent {
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.citationPanelDisclaimer {
    font-family: "Segoe UI";
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    display: flex;
    color: #707070;
}

.citationPanelContent h1 {

    line-height: 30px;

}

.fetchMessagesSpinner {
    margin-top: 30vh;
}
.historyPanelTopRightButtons {
    height: 48px;
}

.MobileChatContainer {
    @media screen and (max-width: 600px) {
        max-width: 100%;
        margin: 0 auto;
        padding: 8px;

    }
}

.mobileStyles {
    @media screen and (max-width: 600px) {
        max-width: 100%;
        flex-grow: 1;
        max-height: 100vh;
    }
}

.mobileclearChatBroom {
    @media screen and (max-width: 600px) {
        left: -30px;

    }
}

.mobileCitationPanelTitle {
    @media screen and (max-width: 600px) {
        font-weight: 400;
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: 8px;

    }
}

.mobileCitationPanelContent {
    @media screen and (max-width: 600px) {
        font-weight: 250;
        font-size: 11px;

    }
}

.mobileCitationPanelDisclaimer {
    @media screen and (max-width: 600px) {
        font-weight: 250;
        font-size: 10px;
    }
}

.dataText {
    background: linear-gradient(90deg, #464FEB 10.42%, #8330E9 100%);
    color: transparent;
    background-clip: text;
}

@media screen and (max-width: 600px) {
    h1 {
        font-weight: 300;
        font-size: 14px;
    }

    h2 {
        font-weight: 300;
        font-size: 12px;
    }
}

  /* High contrast mode specific styles */
  @media screen and (-ms-high-contrast: active), (forced-colors: active) {
    .chatContainer, .chatMessageUserMessage {
        border: 2px solid WindowText;
        padding: 10px;
        background-color: Window;
        color: WindowText;
    }

    .citationPanel , .citationPanelHeader, .citationPanelTitle, .citationPanelContent{
        border: 2px solid WindowText;
        padding: 10px;
        background-color: Window;
        color: WindowText;
    }
}
