/* Chatbox container */
#chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 340px;
    height: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    z-index: 1000;
}

/* Header */
#chat-header {
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

#chat-header button {
    background: transparent;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
}

/* Chat area */
#chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f4f9f4;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Messages */
.msg {
    margin: 4px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
}

.msg.bot {
    background: #d7eed9;
    color: #1b5e20;
    align-self: flex-start;
}

.msg.user {
    background: #1976d2;
    color: white;
    align-self: flex-end;
}

/* Buttons inside chat */
.chat-btn {
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 4px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease, transform 0.2s;
}
.chat-btn:hover {
    background: #1b5e20;
    transform: scale(1.05);
}

/* Floating toggle */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
    z-index: 1000;
}
