:root {
    --primary-color: #4a6ee0;
    --secondary-color: #e9eeff;
    --text-color: #333;
    --light-text: #666;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --recording-color: rgba(255, 0, 0, 0.2);
}



.chat-container {
    width: 100%;
    max-width: 650px;
    height: 650px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chat-header .bot-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-header .bot-avatar svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.95rem;
    position: relative;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    background-color: white;
}

.chat-input-field {
    flex: 1;
    border: none;
    background-color: var(--secondary-color);
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input-field:focus {
    box-shadow: 0 0 0 2px rgba(74, 110, 224, 0.3);
}

.chat-button {
    background-color: transparent;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.chat-button:hover {
    background-color: var(--secondary-color);
}

.chat-button svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-color);
}

.chat-button.recording {
    background-color: var(--recording-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.typing-indicator {
    display: flex;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    border-radius: 18px;
    align-self: flex-start;
    margin-top: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}