/* Toggle button */
#ec-chat-toggle-button {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 40px;
    height: 40px;
    background: #1595eb;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99999;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Hide on mobile */
@media (max-width: 767px) {
    #ec-chat-toggle-button,
    #ec-floating-chat-box {
        display: none !important;
    }
}
#ec-chat-input-container, #ec-chat-input{
    background-color:#2E2E2E;
    color:white;
}
#ec-chat-messages{
    background-color: #1595eb !important;
    color:white !important;
}
.ec-msg{
    background-color: #2e2e2e !important;
    color:white !important;
}
/* Floating chat box */
#ec-floating-chat-box {
    position: fixed;
    top: 100px;
    right: 50px;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    z-index: 99998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    resize: both;
}

/* Header */
#ec-chat-header {
    background: #1595eb;
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    flex-shrink: 0;
    z-index: 1000;
}

/* Close button */
#ec-chat-close, #ec-chat-close > img{
    cursor: pointer;
    color:white
}

/* Messages container */
#ec-chat-messages {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}
#ec-msg{
    background-color:#2E2E2E;
    color:white;
}
/* Input container */
#ec-chat-input-container {
    flex-shrink: 0;
    display: flex;
    gap: 5px;
    padding: 5px;
    border-top: 1px solid #ccc;
    background: #f9f9f9;
}

/* Input field */
#ec-chat-input {
    flex: 1;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Send button */
#ec-chat-send {
    padding: 8px 12px;
    cursor: pointer;
    background-color: #1595eb;
    color: #fff;
    border: none;
    border-radius: 4px;
}
#ec-chat-send:hover { background-color: #0d78c3; }

/* Messages */
.ec-msg {
    margin-bottom: 5px;
    background: #f0f0f0;
    padding: 6px 8px;
    border-radius: 4px;
    position: relative;
}

/* Countdown timer */
.ec-timer {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    text-align: right;
}
/* Expanded chat size */
#ec-floating-chat-box.expanded {
    width: 600px !important;
    height: 600px !important;
}



/* Apply to the div containing the iframe */
#locawork-forum-container::-webkit-scrollbar {
    width: 10px;               /* width of scrollbar */
}

#locawork-forum-container::-webkit-scrollbar-track {
    background: #f0f0f0;       /* track background */
    border-radius: 10px;
}

#locawork-forum-container::-webkit-scrollbar-thumb {
    background-color: #1595eb; /* thumb color */
    border-radius: 10px;
    border: 2px solid #f0f0f0; /* optional padding */
}

/* Firefox */
#locawork-forum-container {
    scrollbar-width: thin;
    scrollbar-color: #1595eb #f0f0f0;
}

#ec-chat-header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* horizontal, vertical, blur, color */
    z-index: 10; /* ensure shadow appears above content below */
}
#ec-chat-input-container{
    background-color: #2e2e2e !important;
}

#ec-chat-input-container {
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3); /* negative vertical offset */
    z-index: 10; /* ensure shadow is visible above other elements */
}