﻿.chat-container {
    justify-content: center;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    max-height: fit-content;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.chat-space {
    text-align:-webkit-center; 
    /*position: fixed; */
    width: 60%
}

@media(max-width: 1200px) {
    .chat-space {
        width: 95% !important;
    }
}

.chat-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 90vh;
    width: 100%;
    background-color: #21283d;
    border-radius: 25px;
    padding: 5px;
    border: #3e4456 1px solid;
}

.input-area textarea {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #171c2b, #21263b) padding-box, linear-gradient(to bottom, #171c2b, #21263b) border-box;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 26px;
    resize: none;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
}

.input-area textarea::placeholder {
    color: #8791b0;
}

.chat-message {
    margin-bottom: 12px;
}

@media(max-width: 1200px) {
    .chat-wrapper {
        width: 95% !important;
    }
}

.chat-wrapper {
    width: 70%;
}

.chat-area {
    position: relative; /* necessário para os botões ficarem posicionados corretamente */
}

.chat-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 12px;
}

.icon-button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.icon-button:hover {
    background-color: #2f364a;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.suggestion-buttons button {
    background-color: #2f364a;
    color: rgb(194, 202, 223);
    border: 1px solid #2f364a;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-buttons button:hover {
    background-color: rgb(28 35 56);
    border: 1px solid rgb(151 171 234);
}

@media (max-width: 768px) {
    .suggestion-buttons button:nth-child(n+4) {
        display: none;
    }
}

.chat-box {
    /*max-height: 600px;*/
    padding: 10px;
    margin-bottom: 10px;
    /*overflow-y: auto;*/
    font-size: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-message {
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 16px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #374151;
    color: white;
    border-bottom-right-radius: 4px;
}

.user-message-timestamp {
    align-self: flex-end;
    color: white;
    font-size: 12px;
}

.bot-message {
    align-self: flex-start;
    background-color: #374151;
    color: white;
    border-bottom-left-radius: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.bot-message-timestamp {
    align-self: flex-start;
    color: white;
    font-size: 12px;
}

.thinking-dots {
    display: inline-block;
}

.thinking-dots span {
    display: inline-block;
    font-size: 23px;
    color: #e2e8f7;
    animation: blink 1.4s infinite;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

#chatBox {
    /*max-height: 600px !important;*/
    /*overflow-y: auto !important;*/
    padding: 10px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #9f9f9f #151a28 !important;
}

#chatBox::-webkit-scrollbar {
    width: 8px !important;
}

#chatBox::-webkit-scrollbar-track {
    background: #151a28 !important;
    border-radius: 10px !important;
}

#chatBox::-webkit-scrollbar-thumb {
    background: #3b82f6 !important;
    border-radius: 10px !important;
}

#chatBox::-webkit-scrollbar-thumb:hover {
    background: #2563eb !important;
}
        
@keyframes blink {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}