:root {
    --yellow: #f5cf2c;
    --dark-gray: #2e2e2e;
    --light-gray: #f4f4f4;
    --border-gray: #d8d8d8;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 85vh;
    padding: 10px;
    background: white;
    border-radius: 12px;
    font-family: "Inter", system-ui, sans-serif;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 5px;
}

.chat-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.chat-message.user {
    background-color: gold;
    margin-left: 8%;
    width: 90%;
}

.chat-message.assistant {
    background-color: #e2e8ee;
    margin-right: 8%;
    width: auto;
}

.chat-message.assistant:before {
    background: url(/media/static/images/admin/favicon.png);
    width: 24px !important;
    height: 24px !important;
    position: relative;
    z-index: 7;
    left: -10px;
    top: -15px;
    display: inline-block;
    content: '';
    background-size: 100%;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding-top: 0.5rem;
}

.chat-input input[type=text] {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
    width: 90%;
    height: 40px;

}

.chat-input input[type=text]:focus {
    border-color: var(--yellow);
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 1rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--border-gray);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-dropzone {
    padding: 10px;
    border: 2px dashed #bbb;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.chat-dropzone.dragover {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.chat-dropzone{
    width: 10%;
}

.msg-svg svg {
    border-radius: 6px;
}

#chat_send {
    margin-bottom: 0px !important;
    border-radius: 6px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

#chat_send span {
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat_send svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat_send:hover {
    -webkit-transition: background-color 1000ms linear;
    -ms-transition: background-color 1000ms linear;
    transition: background-color 1000ms linear;
    background-color: #cddce7;
}

.helper-body {
    padding: 5px;
}

.helper-body p {
    font-size:10px; color:#666; font-style:italic;
}