
#ravenai-chat-container {
    font-family: 'Segoe UI', sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#ravenai-chat-bubble {
    width: 60px;
    height: 60px;
    font-size: 28px;
    color: white;
    text-align: center;
    background-color: #0078FF;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#ravenai-chat-window {
    display: none;
    flex-direction: column;
    width: 360px;
    max-width: 95vw;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

#ravenai-chat-window.ravenai-visible {
    display: flex;
}

#ravenai-chat-header {
    padding: 16px;
    background-color: #0078FF;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
}

#ravenai-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #f5f7fa;
    overflow-y: auto;
    gap: 10px;
}

.ravenai-user-msg,
.ravenai-bot-msg {
    display: flex;
    align-items: flex-start;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.4;
}

.ravenai-user-msg {
    align-self: flex-end;
    background: #dcf8c6;
    border-radius: 18px 18px 0 18px;
    padding: 10px 14px;
}

.ravenai-bot-msg {
    align-self: flex-start;
    background: #ffffff;
    border-radius: 18px 18px 18px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ravenai-bot-msg .avatar {
    width: 30px;
    height: 30px;
    background-color: #0078FF;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.ravenai-bot-msg .msg-content {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    max-width: calc(100% - 38px);
}

.ravenai-typing .dots {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.ravenai-typing .dots span {
    width: 6px;
    height: 6px;
    background-color: #bbb;
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.ravenai-typing .dots span:nth-child(2) { animation-delay: 0.2s; }
.ravenai-typing .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

#ravenai-chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}

#ravenai-user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 14px;
}

#ravenai-chat-input-area button {
    margin-left: 10px;
    padding: 10px 16px;
    background-color: #0078FF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}
