#chatbot-btn {
    position: fixed;
    bottom: 60px;
    right: 40px;
    background-color: #002D84;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#chatbot-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

#chat-window {
    position: fixed;
    bottom: 140px;
    right: 40px;
    width: 320px;
    height: 420px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 998;
}

#chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.client {
    background: #002D84;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.bot {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-window-ar .client {
    border-radius: 14px;
    border-bottom-left-radius: 0 !important;;
}

.chat-window-ar .bot {
    border-radius: 14px;
    border-bottom-right-radius: 0 !important;;
}

.bot-icon {
    flex-shrink: 0;
}

.bot-icon svg {
    width: 20px;
    height: 20px;
    fill: #002D84;
    margin-top: 2px;
}

#chat-input-container {
    display: flex;
    border-top: 1px solid #eee;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

#send-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #002D84;
}

#send-btn svg {
    width: 20px;
    height: 20px;
}

#voice-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

#chat-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #002D84;
    font-weight: bold;
}

/* Loader Animation */
.loader {
    border: 2px solid #eee;
    border-top: 2px solid #F64DD1;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-top: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
