/* General Styling */
#chat-container {
    width: 400px;
    border: 1px solid #a5d6a7; /* Green border */
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff; /* White background */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: hidden;
}

#chat-header {
    background-color: #66bb6a; /* Darker green for header */
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

#chat-header h2 {
    margin: 0;
    font-size: 18px;
}

#toggle-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* Arrow rotation when expanded */
.expanded #toggle-arrow {
    transform: rotate(180deg);
}

#chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #a5d6a7; /* Green border */
}

/* Sender's messages (aligned right) */
.sent-message {
    text-align: right;
    background-color: #a5d6a7; /* Slightly darker green bubble */
    padding: 8px;
    border-radius: 12px 12px 0px 12px;
    margin-bottom: 5px;
    width: fit-content;
    max-width: 80%;
    margin-left: auto;
}

/* Received messages (aligned left) */
.received-message {
    text-align: left;
    background-color: #c8e6c9; /* Light green bubble */
    padding: 8px;
    border-radius: 12px 12px 12px 0px;
    margin-bottom: 5px;
    width: fit-content;
    max-width: 80%;
}

/* Chat form styling */
#chat-form {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-top: 1px solid #a5d6a7;
    background-color: #f1f8f6;
}

#message-input {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#chat-container.collapsed #chat-messages {
    height: 0;
    overflow: hidden;
}

#chat-container.collapsed #chat-form {
    display: none;
}
#chat-icon {
    width: 60px;
    height: 60px;
    background-color: #66bb6a;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    transition: transform 0.3s ease;
}

#chat-icon:hover {
    transform: scale(1.5); /* Slight zoom on hover */
}
#chat-container.collapsed {
    display: none; /* or use visibility: hidden; */
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}