/* Telegram-like Messenger Styles */

.messenger-container {
    display: flex;
    height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Left Sidebar - Chat List */
.messenger-sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.messenger-sidebar-header {
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.messenger-sidebar-search {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: #f4f4f5;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.messenger-sidebar-search::placeholder {
    color: #707579;
}

.messenger-chat-list {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.messenger-chat-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.messenger-chat-item:hover {
    background: #f5f5f5;
}

.messenger-chat-item.active {
    background: #e8f4fd;
    border-left: 3px solid #3390ec;
}

.messenger-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.messenger-chat-info {
    flex: 1;
    min-width: 0;
}

.messenger-chat-title {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-chat-preview {
    font-size: 14px;
    color: #707579;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.messenger-chat-time {
    font-size: 13px;
    color: #707579;
    white-space: nowrap;
}

.messenger-chat-badge {
    background: #3390ec;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Right Panel - Chat Area */
.messenger-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Градиент как на скриншоте: от светло-зеленовато-серого сверху к темно-зеленому снизу */
    background: linear-gradient(to bottom, #DCE6D2 0%, #B0C89F 100%);
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

/* Паттерн с дудлами для текстуры фона (как на скриншоте) */
.messenger-chat-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><g opacity="0.04" stroke="%23333" fill="none" stroke-width="1.5"><circle cx="30" cy="40" r="8"/><path d="M30 32 L30 48 M22 40 L38 40"/><circle cx="80" cy="35" r="6"/><path d="M70 35 Q75 30 80 35 Q85 40 90 35"/><path d="M150 30 L145 50 L155 50 Z"/><circle cx="170" cy="45" r="7"/><path d="M163 45 L177 45 M170 38 L170 52" stroke-width="1"/><rect x="25" y="80" width="10" height="15"/><circle cx="75" cy="88" r="6"/><path d="M69 88 Q75 82 81 88"/><path d="M125 85 L120 100 L130 100 Z"/><path d="M125 100 L125 115 M115 108 L135 108" stroke-width="1"/><circle cx="165" cy="90" r="8"/><path d="M158 90 Q165 82 172 90"/><path d="M35 135 L30 150 L40 150 Z"/><path d="M85 132 L80 152 L90 152 Z"/><circle cx="125" cy="140" r="7"/><path d="M118 140 Q125 133 132 140"/><rect x="150" y="130" width="12" height="20" rx="2"/><circle cx="40" cy="175" r="5"/><path d="M35 175 L45 175 M40 170 L40 180" stroke-width="1"/><path d="M90 170 L85 185 L95 185 Z"/><path d="M135 172 L130 187 L140 187 Z"/><path d="M175 170 L170 185 L180 185 Z"/></g></svg>');
    background-size: 300px 300px;
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.messenger-chat-header {
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.messenger-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.messenger-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.messenger-chat-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
}

.messenger-chat-header-actions {
    display: flex;
    gap: 8px;
}

.messenger-header-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #707579;
    transition: background 0.2s;
}

.messenger-header-btn:hover {
    background: #f0f0f0;
}

.messenger-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
    /* Прозрачный фон, чтобы был виден градиент чата */
    background: transparent;
}

.messenger-message {
    display: flex;
    flex-direction: column;
    max-width: 65%;
    align-self: flex-start;
    animation: messageSlideIn 0.2s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messenger-message.own {
    align-self: flex-end;
}

.messenger-message-bubble {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.messenger-message.own .messenger-message-bubble {
    background: #dcf8c6;
}

.messenger-message-text {
    font-size: 15px;
    line-height: 1.4;
    color: #000000;
    margin: 0;
    word-wrap: break-word;
}

.messenger-message-time {
    font-size: 11px;
    color: #707579;
    margin-top: 4px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    order: 999;
}

.messenger-message-sender {
    font-size: 13px;
    font-weight: 600;
    color: #3390ec;
    margin-bottom: 4px;
}

.messenger-message-attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.messenger-attachment {
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.messenger-attachment img {
    width: 100%;
    height: auto;
    display: block;
}

.messenger-attachment-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 8px;
}

.messenger-attachment-icon {
    width: 40px;
    height: 40px;
    background: #3390ec;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.messenger-attachment-info {
    flex: 1;
    min-width: 0;
}

.messenger-attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messenger-attachment-size {
    font-size: 12px;
    color: #707579;
}

.messenger-input-area {
    padding: 12px 16px;
    background: #ffffff;
    border-top: 1px solid #e4e4e4;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.messenger-input-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 24px;
    padding: 8px 16px;
}

.messenger-attach-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #707579;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.messenger-attach-btn:hover {
    background: #f0f0f0;
}

.messenger-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    line-height: 1.4;
    resize: none;
    max-height: 120px;
    min-height: 24px;
    font-family: inherit;
    color: #000000;
}

.messenger-input::placeholder {
    color: #707579;
}

.messenger-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #3390ec;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.messenger-send-btn:hover {
    background: #2b7dd8;
}

.messenger-send-btn:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
}

.messenger-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #707579;
    font-size: 16px;
    position: relative;
    z-index: 1;
    /* Прозрачный фон, чтобы был виден градиент чата */
    background: transparent;
}

/* Modal Styles for Creating Chat/Group/Channel */
.messenger-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.messenger-modal.active {
    display: flex;
}

.messenger-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.messenger-modal-header {
    margin-bottom: 20px;
}

.messenger-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.messenger-modal-close {
    float: right;
    font-size: 28px;
    font-weight: 300;
    color: #707579;
    cursor: pointer;
    line-height: 1;
    border: none;
    background: transparent;
}

.messenger-modal-close:hover {
    color: #000000;
}

.messenger-modal-body {
    margin-bottom: 20px;
}

.messenger-form-group {
    margin-bottom: 16px;
}

.messenger-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
}

.messenger-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.messenger-form-input:focus {
    border-color: #3390ec;
}

.messenger-form-textarea {
    min-height: 80px;
    resize: vertical;
}

.messenger-users-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 8px;
}

.messenger-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.messenger-user-item:hover {
    background: #f5f5f5;
}

.messenger-user-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.messenger-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.messenger-user-info {
    flex: 1;
}

.messenger-user-name {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
}

.messenger-user-email {
    font-size: 13px;
    color: #707579;
}

.messenger-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.messenger-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.messenger-btn-primary {
    background: #3390ec;
    color: white;
}

.messenger-btn-primary:hover {
    background: #2b7dd8;
}

.messenger-btn-secondary {
    background: #f0f0f0;
    color: #000000;
}

.messenger-btn-secondary:hover {
    background: #e0e0e0;
}

/* Action buttons in sidebar */
.messenger-actions {
    padding: 12px 16px;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    gap: 8px;
}

.messenger-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #000000;
}

.messenger-action-btn:hover {
    background: #f5f5f5;
    border-color: #3390ec;
}

.messenger-action-btn.primary {
    background: #3390ec;
    color: white;
    border-color: #3390ec;
}

.messenger-action-btn.primary:hover {
    background: #2b7dd8;
}

/* Chat type badges */
.messenger-chat-type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
}

.messenger-chat-type.group {
    background: #e8f4fd;
    color: #3390ec;
}

.messenger-chat-type.channel {
    background: #fff3cd;
    color: #ff9800;
}

.messenger-chat-type.private {
    background: #f0f0f0;
    color: #707579;
}

/* Scrollbar styling */
.messenger-chat-list::-webkit-scrollbar,
.messenger-messages::-webkit-scrollbar,
.messenger-users-list::-webkit-scrollbar {
    width: 6px;
}

.messenger-chat-list::-webkit-scrollbar-track,
.messenger-messages::-webkit-scrollbar-track,
.messenger-users-list::-webkit-scrollbar-track {
    background: transparent;
}

.messenger-chat-list::-webkit-scrollbar-thumb,
.messenger-messages::-webkit-scrollbar-thumb,
.messenger-users-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.messenger-chat-list::-webkit-scrollbar-thumb:hover,
.messenger-messages::-webkit-scrollbar-thumb:hover,
.messenger-users-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Реакции на сообщения */
.messenger-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    align-items: center;
}

.messenger-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.messenger-reaction:hover {
    background: #e0e0e0;
}

.messenger-reaction-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e4e4e4;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-top: 8px;
}

.messenger-reaction-btn:hover {
    background: #f0f0f0;
}

.messenger-reaction-picker {
    position: fixed;
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 20px;
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Комментарии */
.messenger-comments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.messenger-comment {
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.messenger-comment strong {
    color: #3390ec;
    margin-right: 6px;
}

.messenger-comment-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #e4e4e4;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: 8px;
    margin-top: 8px;
    padding: 0;
}

.messenger-comment-btn:hover {
    background: #f0f0f0;
}

.messenger-comment-input-container {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.messenger-comment-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    margin-bottom: 8px;
    font-family: inherit;
}

/* Кнопка удаления сообщения */
.messenger-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.1);
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    opacity: 0.7;
}

.messenger-message-bubble {
    position: relative;
}

.messenger-message:hover .messenger-delete-btn {
    display: flex;
}

.messenger-delete-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    opacity: 1;
}

/* Контекстное меню как в Telegram */
.messenger-context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 8px;
    min-width: 200px;
    overflow: hidden;
}

.messenger-context-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 4px;
    max-width: 320px;
}

.messenger-context-reaction {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messenger-context-reaction:hover {
    background: #e0e0e0;
}

.messenger-context-separator {
    height: 1px;
    background: #e4e4e4;
    margin: 4px 0;
}

.messenger-context-action {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.messenger-context-action:hover {
    background: #f0f0f0;
}

.messenger-context-action#contextMenuDelete {
    color: #f44336;
}

.messenger-context-action#contextMenuDelete:hover {
    background: #ffebee;
    color: #d32f2f;
}

/* Отображение реакций (без кнопок) */
.messenger-reactions-display {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    align-items: center;
}

.messenger-reaction-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #e3f2fd;
    border-radius: 12px;
    font-size: 14px;
    cursor: default;
}

/* Убрать старые кнопки реакций и комментариев */
.messenger-reaction-btn,
.messenger-comment-btn {
    display: none !important;
}

.messenger-delete-btn {
    display: none !important;
}

/* Поле ввода для админки */
#messengerInputAreaAdmin {
    flex-shrink: 0 !important;
    min-height: 60px !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #e4e4e4 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}

/* Модальное окно для просмотра изображений */
.messenger-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.messenger-image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.messenger-image-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messenger-image-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    flex-shrink: 0;
}

.messenger-image-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 16px;
}

.messenger-image-modal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.messenger-image-modal-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.messenger-image-modal-btn:hover {
    background: #e0e0e0;
}

.messenger-image-modal-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    flex: 1;
    min-height: 0;
}

.messenger-image-modal-body img {
    max-width: 100%;
    max-height: calc(90vh - 120px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.messenger-image-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.messenger-image-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Поле ввода для участников (вне контейнера чата) */
#messengerInputArea {
    flex-shrink: 0 !important;
    min-height: 60px !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #e4e4e4 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}
