/* Normal state of message box */
.message-box {
    width: 100%;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* Expanded state */
.message-box.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 40%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    background: white;
    border: 2px solid #007bff;
    padding: 15px;
    font-size: 18px;
    resize: none;
    outline: none;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
    overflow: auto;
    /* Handles overflow content */
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* Overlay to disable background interactions */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    display: block;
    opacity: 1;
    /* Makes the overlay visible */
    transition: opacity 0.3s ease-in-out;
}

/* Attachment icon */
.attachment-icon {
    cursor: pointer;
    margin-left: 5px;
}

/* Popup input field */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: white;
    border: 2px solid #007bff;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 1060;
}

.popup.active {
    display: block;
}
/* Lock the message input area by disabling it */
.locked {
    pointer-events: none; /* Prevent user interaction */
    background-color: #f8f9fa; /* Light gray background */
    color: #6c757d; /* Darker text color to indicate it's locked */
}

/* Change icon when message input is locked */
.locked-icon {
    color: #6c757d; /* Gray color when locked */
    cursor: not-allowed;
}
.file-input {
    display: none;  /* Hide the file input */
}
