/* Floating chat icon */
#open-chat {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    background-color: #001f3f;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 998;
}

#open-chat:hover {
    background-color: #003366;
}

/* Chatbot box */
.chatbot-wrapper {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    z-index: 999;
}

/* Header */
.chatbot-header {
    background: #001f3f;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* Close Button */
.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Chat Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* WhatsApp-style messages */
.chat-message {
    max-width: 75%;
    margin: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    background-color:rgb(240, 247, 255);
    color: #000;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.bot-message {
    background-color: rgb(240, 247, 255);
    color: #000;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

/* Input Area */
.chatbot-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    gap: 5px;
    background: #fafafa;
}

#user-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.send-btn {
    background: #001f3f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.send-btn:hover {
    background: #003366;
}
