You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

388 lines
9.3 KiB

/* ── Break out of Unfold constraints but keep elegant symmetric padding ── */
#content {
padding-left: 1.5rem !important;
padding-right: 1.5rem !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 {
width: 100% !important;
height: calc(100vh - 140px);
margin: 0 auto;
display: flex;
gap: 16px;
}
.rooms-sidebar {
width: 320px;
background: #FAF6E9;
border: 1px solid rgba(10, 82, 46, 0.15);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
overflow: hidden;
display: flex;
flex-direction: column;
flex-shrink: 0;
position: relative;
z-index: 20;
}
@media (min-width: 1024px) {
.rooms-sidebar {
width: 360px;
}
}
.dark .rooms-sidebar {
background: #052B18;
border-color: rgba(250, 246, 233, 0.1);
}
.chat-area {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
z-index: 10;
height: 100%;
min-width: 0;
overflow: hidden;
border: 1px solid rgba(10, 82, 46, 0.15);
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
background: linear-gradient(to bottom, rgba(250, 246, 233, 0.8), rgba(255, 255, 255, 1));
}
.dark .chat-area {
border-color: rgba(250, 246, 233, 0.1);
background: linear-gradient(to bottom, rgba(5, 43, 24, 0.9), rgba(10, 82, 46, 0.4));
}
/* ── 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(10, 82, 46, 0.3);
/* سبز اصلی با شفافیت */
border-radius: 4px;
transition: all 0.3s ease;
}
.chat-scrollbar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
background: rgba(10, 82, 46, 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(10, 82, 46, 0.05);
/* هاور روی روم‌ها با هاله سبز اصلی */
}
.dark .room-item:hover {
background-color: rgba(250, 246, 233, 0.1);
/* هاور در دارک مود با هاله کرمی */
}
.room-item-active {
background: linear-gradient(135deg, rgba(10, 82, 46, 0.1), rgba(5, 43, 24, 0.05)) !important;
box-shadow: 0 2px 8px rgba(10, 82, 46, 0.05);
}
.dark .room-item-active {
background: linear-gradient(135deg, rgba(250, 246, 233, 0.15), rgba(10, 82, 46, 0.1)) !important;
}
/* آواتار کوچک داخل لیست چت‌ها */
.room-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: linear-gradient(135deg, #d4d0c1, #a8a496);
/* تنالیته خاکستری-کرمی خنثی برای روم‌های عادی */
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, #0A522E, #052B18);
/* آواتار روم فعال با گرادیان سبز اصلی و تیره */
}
/* ── Telegram-style Header ── */
.telegram-header {
background: linear-gradient(135deg, #0A522E, #052B18);
/* گرادیان سبز اصلی به سبز تیره */
border: none;
box-shadow: 0 2px 8px rgba(10, 82, 46, 0.2);
backdrop-filter: blur(20px);
height: 64px;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
flex-shrink: 0;
width: 100%;
}
.dark .telegram-header {
background: linear-gradient(135deg, #052B18, #031c0f);
/* سبز خیلی تیره در حالت دارک */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.telegram-header.justify-start {
justify-content: flex-start;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 11px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid rgba(250, 246, 233, 0.25);
/* بردر کرمی نیمه‌شفاف */
}
/* ── Chat Area Background ── */
.chat-messages {
background: transparent;
overflow-y: auto;
overscroll-behavior: contain;
padding: 1.5rem;
}
.dark .chat-messages {
background: transparent;
}
/* ── 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, #0A522E, #074023);
/* حباب پیام ارسال شده: سبز اصلی */
color: #FAF6E9;
/* متن کرمی روشن روی زمینه سبز */
border-radius: 18px 18px 4px 18px;
box-shadow: 0 2px 8px rgba(10, 82, 46, 0.25);
}
.message-bubble-received {
background: #ffffff;
color: #052B18;
/* متن پیام دریافتی: سبز تیره روی زمینه سفید */
border-radius: 18px 18px 18px 4px;
border: 1px solid rgba(250, 246, 233, 0.8);
/* کادر محو کرمی */
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.dark .message-bubble-received {
background: #052B18;
/* حباب دریافتی در دارک: سبز تیره */
color: #FAF6E9;
border: 1px solid rgba(10, 82, 46, 0.4);
}
.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, #FAF6E9);
/* زمینه باکس ارسال: سفید به کرمی */
border-top: 1px solid rgba(10, 82, 46, 0.1);
}
.dark .message-input-area {
background: linear-gradient(135deg, #052B18, #031c0f);
border-top: 1px solid rgba(250, 246, 233, 0.1);
}
.telegram-input-container {
background: #ffffff;
border: 2px solid rgba(10, 82, 46, 0.15);
/* کادر باکس تایپ با هاله سبز */
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: #0A522E;
box-shadow: 0 6px 25px rgba(10, 82, 46, 0.15);
}
.dark .telegram-input-container {
background: rgba(10, 82, 46, 0.1);
border-color: rgba(250, 246, 233, 0.2);
}
.dark .telegram-input-container:focus-within {
border-color: #FAF6E9;
}
.telegram-message-input {
background: transparent;
border: none;
outline: none;
font-size: 14px;
padding: 8px 0;
color: #052B18;
/* رنگ تایپ سبز تیره */
}
.dark .telegram-message-input {
color: #FAF6E9;
}
.telegram-message-input::placeholder {
color: rgba(5, 43, 24, 0.5);
}
.dark .telegram-message-input::placeholder {
color: rgba(250, 246, 233, 0.5);
}
.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, #0A522E, #052B18);
/* دکمه ارسال: سبز اصلی به تیره */
color: #FAF6E9;
}
.send-btn-telegram:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(10, 82, 46, 0.4);
}
.send-btn-telegram:active {
transform: scale(0.95);
}
/* ── Users Modal Solid Backgrounds ── */
#users-modal {
background-color: #FAF6E9 !important;
/* پس‌زمینه مودال: کرمی */
}
#users-modal>div:nth-child(2) {
background-color: #ffffff !important;
border-bottom: 1px solid rgba(10, 82, 46, 0.1) !important;
}
#users-list {
background-color: #FAF6E9 !important;
}
/* Dark Mode Support for Modal */
.dark #users-modal {
background-color: #052B18 !important;
/* پس‌زمینه دارک مودال: سبز تیره */
}
.dark #users-modal>div:nth-child(2) {
background-color: #031c0f !important;
border-bottom: 1px solid rgba(250, 246, 233, 0.1) !important;
}
.dark #users-list {
background-color: #052B18 !important;
}