/* index_chat_widget.css */

.public-chat-widget {
    background-color: #ffffff; /* White background for the card */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between title, chat area, and button */
}

.public-chat-widget .section-title {
    color: #075e54; /* Dark green for consistency */
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px; /* Adjust spacing below title */
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-chat-widget .section-icon {
    font-size: 1.2em;
    color: #075e54;
}

.chat-messages-container {
    height: 200px; /* Fixed height for the widget chat area */
    overflow-y: auto; /* Enable scrolling for messages */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #f9f9f9; /* Light background for message area */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between individual message bubbles */
}

.message-bubble {
    background-color: #e6e6e6; /* Light gray for messages */
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 90%; /* Messages don't take full width */
    word-wrap: break-word;
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow for bubbles */
}

.message-bubble .message-username {
    font-weight: bold;
    color: #075e54; /* Green for usernames */
    display: block; /* Make username on its own line */
    margin-bottom: 2px;
    font-size: 0.8em;
    opacity: 0.9;
}

.message-bubble .message-text {
    color: #333; /* Darker text for message content */
    display: block;
}

.message-bubble .message-timestamp {
    font-size: 0.65em; /* Smaller timestamp */
    color: #888; /* Lighter color for timestamp */
    text-align: right;
    margin-top: 3px;
    display: block;
}

.empty-state-message {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
}

.public-chat-widget .section-footer-actions {
    text-align: center;
    margin-top: 15px;
}

/* Ensure these button styles are compatible with your existing button styling */
.public-chat-widget .btn-primary-modern {
    background-color: #075e54;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.public-chat-widget .btn-primary-modern:hover {
    background-color: #054d44;
}