.arpack-messenger-wrapper { position: relative; display: flex; height: 650px; max-height: 85vh; background: #fff; border: 1px solid #ddd; border-radius: 12px; overflow: hidden; font-family: Tahoma, sans-serif; direction: rtl; box-shadow: 0 5px 25px rgba(0,0,0,0.1); }
.arpack-sidebar { width: 32%; background: #f8f9fa; border-left: 1px solid #e0e0e0; display: flex; flex-direction: column; z-index: 2; }
.arpack-sidebar-header, .arpack-chat-header { padding: 16px; background: #2b5278; color: #fff; font-weight: bold; font-size: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); z-index: 10; }
.arpack-search-box { padding: 10px; background: #f1f1f1; }
#arpack-user-search { width: 100%; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; font-size: 12px; outline: none; transition: border 0.3s; box-sizing: border-box; }
#arpack-user-search:focus { border-color: #2b5278; }

#arpack-users-list { overflow-y: auto; flex: 1; }
.arpack-empty-state, .arpack-loading { text-align: center; margin-top: 50px; font-size: 12px; color: #888; background: rgba(255,255,255,0.7); padding: 10px; border-radius: 20px; align-self: center; }

.arpack-chat-area { flex: 1; display: flex; flex-direction: column; background: #e5ddd5 url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(0,0,0,0.05)"/></svg>'); z-index: 1; }
#arpack-chat-history { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; scroll-behavior: smooth; }

#arpack-upload-progress { background: #ffeb3b; padding: 5px; text-align: center; font-size: 11px; font-weight: bold; }
#arpack-reply-indicator { background: #f0f0f0; padding: 8px 15px; font-size: 12px; border-left: 3px solid #2b5278; display: flex; justify-content: space-between; align-items: center;}
#arpack-cancel-reply { background: none; border: none; color: #ff4444; font-weight: bold; cursor: pointer; }

.arpack-input-area { display: flex; padding: 12px; background: #f0f0f0; align-items: center; gap: 10px; }
.arpack-file-label { cursor: pointer; font-size: 22px; color: #888; transition: color 0.3s; }
.arpack-file-label:hover { color: #2b5278; }
#arpack-message-input { flex: 1; height: 45px; border: none; padding: 12px 15px; border-radius: 25px; resize: none; font-family: inherit; font-size: 13px; outline: none; box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); }
#arpack-send-btn { background: #2b5278; color: #fff; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: transform 0.2s, background 0.2s; }
#arpack-send-btn:hover { background: #1e3c5a; transform: scale(1.05); }

#arpack-drag-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(43,82,120,0.9); color: white; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: bold; z-index: 100; border: 4px dashed #fff; box-sizing: border-box; pointer-events: none;}

@media (max-width: 768px) { .arpack-messenger-wrapper { flex-direction: column; height: 100vh; max-height: 100vh; border-radius: 0; } .arpack-sidebar { width: 100%; height: 35%; border-left: none; border-bottom: 1px solid #ddd; } .arpack-chat-area{ height: 65%; } }