﻿:root {
    --cf-brown: #4E342E;
    --cf-terra: #E65100;
    --cf-beige: #F9F9F9;
}

.htvl-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    background: white;
    height: 75vh;
    display: flex;
    flex-direction: column;
}

.htvl-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--cf-beige);
}

.htvl-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.htvl-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

    .htvl-avatar.user {
        background: var(--cf-terra);
    }

    .htvl-avatar.bot {
        background: var(--cf-brown);
    }

    .htvl-avatar.staff {
        background: #0D47A1;
    }

.htvl-content {
    max-width: 80%;
}

.htvl-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.htvl-row.user {
    flex-direction: row-reverse;
}

    .htvl-row.user .htvl-content {
        align-items: flex-end;
    }

    .htvl-row.user .htvl-bubble {
        background: linear-gradient(135deg, #FF7043, #E65100);
        color: white;
        border-bottom-right-radius: 2px;
    }

.htvl-row.bot .htvl-bubble, .htvl-row.staff .htvl-bubble {
    background: white;
    border: 1px solid #ddd;
    border-bottom-left-radius: 2px;
}

.htvl-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.htvl-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: white;
    gap: 10px;
}

.htvl-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 24px;
    padding: 10px 20px;
    outline: none;
}

.htvl-btn {
    background: var(--cf-terra);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
:root {
    --cf-brown: #4E342E;
    --cf-terra: #E65100;
    --cf-beige: #F9F9F9;
}

.htvl-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    background: white;
    height: 75vh;
    display: flex;
    flex-direction: column;
}

.htvl-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--cf-beige);
}

.htvl-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.htvl-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.htvl-avatar.user {
    background: var(--cf-terra);
}

.htvl-avatar.bot {
    background: var(--cf-brown);
}

.htvl-content {
    max-width: 80%;
}

.htvl-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.htvl-row.user {
    flex-direction: row-reverse;
}

.htvl-row.user .htvl-content {
    align-items: flex-end;
}

.htvl-row.user .htvl-bubble {
    background: linear-gradient(135deg, #FF7043, #E65100);
    color: white;
    border-bottom-right-radius: 2px;
}

.htvl-row.bot .htvl-bubble {
    background: white;
    border: 1px solid #ddd;
    border-bottom-left-radius: 2px;
}

.htvl-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.htvl-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #ddd;
    background: white;
    gap: 10px;
}

.htvl-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 24px;
    padding: 10px 20px;
    outline: none;
}

.htvl-btn {
    background: var(--cf-terra);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.htvl-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Typing Indicator CSS */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}