body {
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #313335;
    text-align: left;
    background-color: #fff;
    height: 100%;
}

html {
    height: 100%;
}

main {
    height: calc(100vh - 68px);
}

.chat-message {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.container-fluid.h-100 {
    height: 100%
}

.row.h-100 {
    height: 100%;
    display: flex;
}

.col-md-3.d-flex.flex-column,
.col-md-6.d-flex.flex-column,
.col-md-3.d-flex.flex-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

pre {
    flex-grow: 1;
    overflow-y: visible;
    margin-bottom: 0;
}

textarea#system-message {
    flex-grow: 1;
    overflow-y: auto;
    height: 100%;
    resize: none;
}

.parameter-panel,
.token_info {
    flex-shrink: 0;
}

.api_call_response,
.api_call_request {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: calc(45% - 24px);
    overflow: hidden;
}

.system-message-container {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}

.navbar {
    background-color: #5B3676;
}

.navbar-brand:hover {
    color: #ffffff;
}

.navbar-brand {
    color: #ffffff;
}

.navbar img.logo {
    height: 100%;
    width: auto;  /* maintain aspect ratio */
    max-width: 100%;  /* prevent image from overflowing */
}

.title {
    text-align: center;
    flex-grow: 1;
    padding-left: 32px;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #5B3676;
    border-color: #5B3676;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #5B3676;
    border-color: #5B3676;
}

.btn-outline-danger {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-danger:hover {
    background-color: #ffffff;
    color: #5B3676;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #5B3676;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}


.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background-color: white; 
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid #5B3676; 
}


.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #5B3676;
    cursor: pointer;
}

.value-box {
    display: inline-block;
    width: 4ch;
    text-align: right;
    margin-left: auto;
}

#model-select {
    width: 100%;
}

#reset-conversation {
    background-color: #5B3676;
    border-color: #5B3676;
    color: #ffffff;
}

#reset-conversation:hover {
    background-color: #5B3676;
    border-color: #5B3676;
}

.bg-purple {
    background-color: #5B3676;
}

.login-form {
    max-width: 150px;
    margin: auto;
}

.footer-logo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.footer-logo img {
    max-width: 250px; 
    height: auto;
}


.login-page {
    background: url('/static/images/cxai-bg1.png') no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

span.chunk {
    white-space: pre-wrap; /* CSS property to maintain whitespace */
}

