.chat-container-small {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 10px;
    margin: 0 auto;
    font-family: 'Roboto Mono', monospace;
    background-color: #d4d4d4;
    border-radius: 5px;
    padding: 10px;
    width: calc(100% - 20px);
    max-width: 500px;
    min-width: 250px;
    border: 1px solid #000;
}

body:has(.chat-container-full) {
    overflow: hidden;
    margin: 0;
}

.chat-page {
    background-color: #d4d4d4;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    font-family: 'Roboto Mono', monospace;
}

.chat-page .chat-container-full {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.chat-container-full-inner {
    border: 1px solid #000;
    border-radius: 5px;

}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
}

.chat-close, .chat-clear-history {
    cursor: pointer;
}

.chat-close img {
    width: 30px;
    height: 30px;
}

.chat-clear-history img {
    width: 20px;
    height: 20px;
}

.chat-body {
    height: 400px;
    overflow-y: auto;
}

.chat-message {
    padding: 10px;
    border-radius: 5px;
    margin: 5px;
}

.chat-message * {
    margin: 0;
}

.chat-message.assistant {
    background-color: #ffebcc;
    color: black;
    margin-right: 50px;
}

.chat-message.user {
    background-color: #daf7a6;
    color: black;
    margin-left: 50px;
}

.chat-message.loading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.chat-message.loading::after {
    content: "";
    padding: 7px;
    background-color: black;
    border-radius: 50%;
    animation: pulsating 2s infinite;
}

.chat-message .source a {
	color: rgb(0, 0, 215);
	text-decoration: underline;
}

.chat-message .source a:hover {
	color: rgb(187, 0, 0);
}

@keyframes pulsating {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}







.chat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.chat-input {
    width: 100%;
    padding: 11px;
    border-radius: 5px;
    border: none;
    resize: none;
    height: 40px;
    border: 1px solid transparent;
    outline: none;
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border: 1.5px solid #000;
    outline: 1px solid #fff;
    outline-offset: 1px;
}

.chat-send {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.chat-send img {
    width: 25px;
    height: 25px;
}

.filter-invert {
    filter: invert(1);
}

.chat-opener {
    position: fixed;
    background-color: #d4d4d4;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-opener img {
    width: 25px;
    height: 25px;
}

.chat-rating-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 5px;
    padding: 5px;
}

.chat-rating-container h3 {
    margin: 0;
    font-size: 16px;
}

#chat-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

#chat-rating img {
    width: 25px;
    height: 25px;
}

#chat-rating .less {
    opacity: 0.5;
}

#chat-rating .less:hover {
    opacity: 1;
}

.chat-container-full .chat-body {
    height: 500px;
}