/* Floating Button */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* Chat Box */
#chatbot {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 9999;
}

/* Header */
#chat-header {
    background: #075E54;
    color: #fff;
    padding: 12px;
    font-weight: bold;
}

#chat-header small {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* Body */
#chat-body {
    flex: 1;
    padding: 10px;
    background: #ECE5DD;
    overflow-y: auto;
}

/* Message Bubble */
.message {
    max-width: 75%;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    font-size: 14px;
}

/* Customer */
.customer {
    background: #DCF8C6;
    align-self: flex-end;
}

/* Agent */
.agent {
    background: #fff;
    align-self: flex-start;
}

/* Footer */
#chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

#send-btn {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* Options Buttons */
#options {
    margin-bottom: 10px;
}

.option {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 10px;
    margin-right: 5px;
    border-radius: 20px;
    cursor: pointer;
}

.option:hover {
    background: #25D366;
    color: #fff;
}

#messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* COMMON MESSAGE STYLE */
.message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    word-wrap: break-word;
}

/* 👤 CUSTOMER (RIGHT SIDE - GREEN) */
.customer-message-right {
    align-self: flex-end;
    background-color: #DCF8C6; /* WhatsApp green */
    color: #000;
    border-bottom-right-radius: 0;
}

/* 🤖 AGENT (LEFT SIDE - WHITE) */
.customer-message-left {
    align-self: flex-start;
    background-color: #ffffff;
    color: #000;
    border-bottom-left-radius: 0;
    border: 1px solid #eee;
}

/* Frontend chat bubble styling */
.chat-message-bubble {
    position: relative;
    padding-bottom: 15px; /* Time ke liye thodi jagah */
}

.chat-time {
    font-size: 10px;
    color: #999;
    position: absolute;
    bottom: 4px;
    right: 8px;
}