/* -------------------------------------------------------
   UNIVERSAL CHAT EDITOR (Body / Team / Foyer)
------------------------------------------------------- */

.chat-editor {
    position: fixed;
    left: 0;
    right: 0;

    /* Matches composer height */
    bottom: 110px;

    padding: 14px 16px;
    background: var(--chat-editor-bg);
    border-top: 1px solid var(--chat-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);

    transform: translateY(calc(100% + 120px));
    transition: transform 0.25s ease;

    z-index: 999999;
    isolation: isolate;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.chat-editor.show {
    transform: translateY(0);
}

.chat-editor.hidden {
    display: none !important;
}

/* -------------------------------------------------------
   TEXTAREA
------------------------------------------------------- */

.chat-editor textarea {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    border: 1px solid var(--chat-border-input);
    padding: 10px 12px;
    font-size: 15px;
    resize: none;
    background: var(--chat-input-bg);
    color: var(--chat-text);
    box-sizing: border-box;
}

.chat-editor textarea:focus {
    outline: none;
    border-color: var(--chat-accent-soft);
    box-shadow: 0 0 0 2px var(--chat-accent-soft);
}

/* -------------------------------------------------------
   ACTION BUTTONS
------------------------------------------------------- */

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.editor-actions button {
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cancel-btn {
    background: rgba(0,0,0,0.08);
    color: var(--chat-text);
}

.cancel-btn:hover {
    background: rgba(0,0,0,0.12);
}

.save-btn {
    background: var(--chat-accent);
    color: white;
}

.save-btn:hover {
    background: var(--chat-accent-strong);
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   MOBILE MODE (max-width: 900px)
------------------------------------------------------- */

@media (max-width: 900px) {

    .chat-editor {
        bottom: 90px;
        padding: 12px 14px;
    }

    .chat-editor textarea {
        height: 70px;
        font-size: 14px;
        padding: 8px 10px;
    }

    .editor-actions {
        gap: 10px;
        margin-top: 8px;
    }

    .editor-actions button {
        padding: 6px 12px;
        font-size: 13px;
    }
}
