
/*
 * BRP Custom Layout — Navigation à droite, chat à gauche
 * Compatible Element Web v1.12.x
 */

/* ── Conteneur principal : inverser l'ordre gauche/droite ── */
.mx_MatrixChat {
    flex-direction: row-reverse !important;
}

/* ── Panel gauche (rooms + spaces) → passer à droite ── */
.mx_LeftPanel_wrapper {
    order: 10 !important;
    border-left: 1px solid #2d2d2d !important;
    border-right: none !important;
}

/* ── Panel des espaces (icônes verticales) ── */
.mx_SpacePanel {
    order: 10 !important;
    border-left: 1px solid #1a1a1a !important;
    border-right: none !important;
}

/* ── Zone de chat principale → rester à gauche ── */
.mx_RoomView,
.mx_RoomView_wrapper,
.mx_HomePage {
    order: 1 !important;
    flex: 1 !important;
}

/* ── Scrollbar à gauche pour la liste des salons ── */
.mx_LeftPanel .mx_LeftPanel_actualRoomList {
    direction: rtl;
}
.mx_LeftPanel .mx_LeftPanel_actualRoomList > * {
    direction: ltr;
}

/* ── Panneau de droite (membres, paramètres) → rester à gauche de la nav ── */
.mx_RightPanel {
    order: 5 !important;
    border-left: 1px solid #2d2d2d !important;
    border-right: none !important;
}

/* ── Ajuster le redimensionnement du panel ── */
.mx_ResizeHandle_horizontal {
    cursor: ew-resize !important;
}
