/* One clean box around the composer — border on the wrapper only */
.mx_MessageComposer_wrapper {
    background-color: #f0f0f3 !important;
    border: 1.5px solid #c3c7d1 !important;
    border-radius: 10px !important;
    padding: 4px 8px !important;
    margin: 4px 8px 8px 8px !important;
}
/* Make sure the inner elements carry NO border/background of their own */
.mx_MessageComposer,
.mx_BasicMessageComposer_input {
    background-color: transparent !important;
    border: none !important;
}
/* Dark theme */
.cpd-theme-dark .mx_MessageComposer_wrapper,
[data-theme="dark"] .mx_MessageComposer_wrapper {
    background-color: #20242d !important;
    border-color: #3a3f4b !important;
}

/* Keep text clear of the lock/encryption icon on the left */
.mx_MessageComposer_wrapper .mx_MessageComposer_row {
    gap: 8px !important;
    align-items: center !important;
}
.mx_BasicMessageComposer_input {
    padding-left: 6px !important;
}

/* Hide the "not encrypted" lock icon in the composer (always unencrypted here, so it adds nothing) */
.mx_MessageComposer_e2eIconWrapper { display: none !important; }
/* Give the input a touch of left room now that the icon is gone */
.mx_SendMessageComposer { padding-left: 4px !important; }

/* Hide the "Create a space" (+) button in the left rail to avoid confusing agents */
.mx_SpaceButton_new { display: none !important; }

/* Make the "+" (new conversation) button prominent — sits right after "Room Options" (...) */
button[aria-label="Room Options"] + button {
    background-color: #3fb950 !important;
    border-radius: 8px !important;
    transform: scale(1.4);
    margin-left: 6px !important;
}
button[aria-label="Room Options"] + button svg {
    color: #ffffff !important;
}
