
#cac-chat-container {
    border: 2px solid #004990;
    border-radius: 12px;
    padding: 1em;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-family: inherit;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#cac-chat-log {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1em;
}
.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75em;
    padding: 0.75em;
    border-radius: 10px;
    line-height: 1.5;
    animation: fadeIn 0.5s ease;
}
.chat-message.user {
    background: #f0f4f9;
    justify-content: flex-end;
}
.chat-message.bot {
    background: #e8eaf0;
}
.avatar {
    margin-right: 0.5em;
}
.user-avatar {
    order: 2;
    margin-left: 0.5em;
}
.msg-content {
    max-width: 80%;
    word-wrap: break-word;
}
#cac-chat-input-container {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}
#cac-chat-input {
    flex-grow: 1;
    padding: 0.75em;
    border: 1px solid #004990;
    border-radius: 8px;
}
#cac-send-button {
    padding: 0.75em 1em;
    border: none;
    border-radius: 8px;
    background: #004990;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}
#cac-send-button:hover {
    background: #003366;
}
#cac-chat-starters {
    margin-bottom: 1em;
}
.starter-btn {
    background: #e6eff9;
    border: 1px solid #004990;
    border-radius: 8px;
    padding: 0.5em 0.8em;
    margin: 0.2em;
    cursor: pointer;
    transition: background 0.3s;
}
.starter-btn:hover {
    background: #cce0f5;
}
.dots span {
    animation: blink 1s infinite alternate;
}
.dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes blink {
    from {opacity: 0.2;}
    to {opacity: 1;}
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}
@media (max-width: 600px) {
    #cac-chat-container {
        width: 100%;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    #cac-chat-log {
        flex-grow: 1;
    }
}
