/* ── در هم شکستن محدودیت عرض و پدینگ‌های پیش‌فرض انفولد ── */ #content { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; max-width: 100% !important; width: 100% !important; } div:has(> #content) { padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; } body, html { overflow: hidden !important; font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important; } /* ── Layout & Structure ── */ .chat-main-wrapper { height: calc(100vh - 140px); margin-top: -1rem; } .rooms-sidebar { width: 320px; background: #f8fafc; /* رنگ پس‌زمینه خیلی ملایم برای سایدبار */ } @media (min-width: 1024px) { .rooms-sidebar { width: 360px; } } .dark .rooms-sidebar { background: #1f2937; } /* ── Custom Scrollbar ── */ .chat-scrollbar::-webkit-scrollbar, .chat-messages::-webkit-scrollbar { width: 6px; } .chat-scrollbar::-webkit-scrollbar-track, .chat-messages::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 4px; } .chat-scrollbar::-webkit-scrollbar-thumb, .chat-messages::-webkit-scrollbar-thumb { background: rgba(0, 136, 204, 0.3); border-radius: 4px; transition: all 0.3s ease; } .chat-scrollbar::-webkit-scrollbar-thumb:hover, .chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(0, 136, 204, 0.5); } /* ── Room List Styles (New Telegram/Modern Style) ── */ .room-item { margin: 4px 8px; /* ایجاد فاصله از دیواره‌های سایدبار */ border-radius: 12px; /* گرد کردن گوشه‌های کل روم */ border-left: none !important; /* حذف بوردر چپ قدیمی */ transition: background-color 0.2s ease, transform 0.1s ease; } .room-item:hover { background-color: rgba(0, 136, 204, 0.05); } .dark .room-item:hover { background-color: rgba(255, 255, 255, 0.05); } .room-item-active { background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(28, 156, 232, 0.05)) !important; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.05); } .dark .room-item-active { background: linear-gradient(135deg, rgba(28, 156, 232, 0.15), rgba(0, 136, 204, 0.05)) !important; } /* آواتار کوچک داخل لیست چت‌ها */ .room-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #cbd5e1, #94a3b8); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; flex-shrink: 0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); } .room-item-active .room-avatar { background: linear-gradient(135deg, #0088cc, #1c9ce8); } /* ── Telegram-style Header ── */ .telegram-header { background: linear-gradient(135deg, #0088cc, #1c9ce8); border: none; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2); backdrop-filter: blur(20px); } .dark .telegram-header { background: linear-gradient(135deg, #1f2937, #374151); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); } .user-avatar { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.25); } /* ── Chat Area Background ── */ .chat-messages { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(248, 250, 252, 0.8)); overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem; } .dark .chat-messages { background: linear-gradient(to bottom, rgba(17, 24, 39, 0.5), rgba(31, 41, 55, 0.8)); } /* ── Message Bubbles (Telegram Style) ── */ .message-bubble { max-width: 80%; margin-bottom: 16px; animation: slideInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); } @keyframes slideInUp { from { opacity: 0; transform: translateY(15px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } .message-sent { margin-left: auto; margin-right: 0; display: flex; justify-content: flex-end; } .message-received { margin-right: auto; margin-left: 0; display: flex; justify-content: flex-start; } .message-bubble-sent { background: linear-gradient(135deg, #0088cc, #1c9ce8); color: white; border-radius: 18px 18px 4px 18px; box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25); } .message-bubble-received { background: #ffffff; color: #374151; border-radius: 18px 18px 18px 4px; border: 1px solid rgba(229, 231, 235, 0.6); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .dark .message-bubble-received { background: #374151; color: #f9fafb; border: 1px solid rgba(75, 85, 99, 0.3); } .message-content { padding: 10px 14px; font-size: 14px; line-height: 1.6; word-wrap: break-word; } .message-meta { font-size: 10px; opacity: 0.7; margin-top: 4px; text-align: right; font-weight: 500; } /* ── Input Area ── */ .message-input-area { background: linear-gradient(135deg, #ffffff, #f8fafc); border-top: 1px solid rgba(229, 231, 235, 0.3); } .dark .message-input-area { background: linear-gradient(135deg, #374151, #4b5563); border-top: 1px solid rgba(75, 85, 99, 0.3); } .telegram-input-container { background: #ffffff; border: 2px solid rgba(0, 136, 204, 0.1); border-radius: 25px; padding: 6px 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); transition: all 0.3s ease; } .telegram-input-container:focus-within { border-color: #0088cc; box-shadow: 0 6px 25px rgba(0, 136, 204, 0.12); } .dark .telegram-input-container { background: rgba(55, 65, 81, 0.9); border-color: rgba(75, 85, 99, 0.3); } .dark .telegram-input-container:focus-within { border-color: #1c9ce8; } .telegram-message-input { background: transparent; border: none; outline: none; font-size: 14px; padding: 8px 0; color: #374151; } .dark .telegram-message-input { color: #f9fafb; } .telegram-message-input::placeholder { color: #9ca3af; } .telegram-action-btn { width: 44px; height: 44px; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; cursor: pointer; flex-shrink: 0; } .send-btn-telegram { background: linear-gradient(135deg, #0088cc, #1c9ce8); color: white; } .send-btn-telegram:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4); } .send-btn-telegram:active { transform: scale(0.95); } /* ── Users Modal Solid Backgrounds ── */ #users-modal { background-color: #f8fafc !important; } #users-modal > div:nth-child(2) { background-color: #ffffff !important; border-bottom: 1px solid #e5e7eb !important; } #users-list { background-color: #f8fafc !important; } /* Dark Mode Support */ .dark #users-modal { background-color: #1f2937 !important; } .dark #users-modal > div:nth-child(2) { background-color: #111827 !important; border-bottom: 1px solid #374151 !important; } .dark #users-list { background-color: #1f2937 !important; }