/* Floating button */
.message-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1d2a35; /* Darker shade of #15202b */
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Popup styling */
.message-popup {
    position: fixed;
    bottom: -100%;
    right: 20px;
    width: 300px;
    background: #15202b; /* Dark theme */
    border-radius: 10px 10px 0 0;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.3);
    transition: bottom 0.3s ease-in-out;
    z-index: 999;
}

/* Popup Header */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1d2a35; /* Slightly lighter dark shade */
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
}

/* Close Button */
#closePopup {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Popup Content */
.popup-content {
    padding: 15px;
    background: #15202b;
    color: white;
}

#messagesContainer {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* User Message */
.user-message {
    background-color: #1d9bf0; /* Twitter blue for contrast */
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin: 5px 0;
    align-self: flex-end;
    text-align: right;
    max-width: 80%;
}

/* Admin Message */
.admin-message {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    color: white;
    padding: 8px;
    border-radius: 8px;
    margin: 5px 0;
    align-self: flex-start;
    text-align: left;
    max-width: 80%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Message Input */
.message-input {
    display: flex;
    border-top: 1px solid #1d2a35;
    padding: 5px;
    background: #15202b;
}

.message-input input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #1d2a35;
    color: white;
}

.message-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.message-input button {
    background: #1d9bf0;
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

/* Active Now Indicator */
.active-now {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #00FF00; /* Bright green */
    margin-bottom: 10px;
}

.active-now::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: #00FF00;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 6px #00FF00;
}

.active-now::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--status-color, #00FF00);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 6px var(--status-color, #00FF00);
}
