/* Base styles */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } ::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: #a8a8a8; } /* Message styles */ .message { max-width: 70%; margin-bottom: 16px; padding: 8px 12px; border-radius: 12px; position: relative; word-break: break-word; } .message.sent { background-color: #e3f2fd; margin-left: auto; border-bottom-right-radius: 4px; } .message.received { background-color: #ffffff; margin-right: auto; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .message.deleted { background-color: #ffebee; opacity: 0.8; } .message.sent-success { background-color: #e8f5e9; } .message-time { font-size: 0.75rem; color: #666; margin-top: 4px; text-align: left; } .message-caption { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, 0.1); } .message-date-divider { text-align: center; margin: 16px 0; position: relative; } .message-date-divider span { background-color: #f1f1f1; padding: 4px 12px; border-radius: 12px; font-size: 0.75rem; color: #666; } /* Media message styles */ .media-message { max-width: 300px; border-radius: 12px; overflow: hidden; position: relative; } .media-message img, .media-message video { width: 100%; display: block; } .media-message .play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.6); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .media-message .play-button i { color: white; margin-left: 4px; } /* Chat list item */ .chat-item { transition: background-color 0.2s; } .chat-item:hover { background-color: #f5f5f5; } .chat-item.active { background-color: #e3f2fd; } /* Account card */ .account-card { transition: transform 0.2s, box-shadow 0.2s; } .account-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } /* Chat filter button */ .chat-filter-btn.active { background-color: rgba(255, 255, 255, 0.2); } /* Responsive adjustments */ @media (max-width: 768px) { #chats-page main { flex-direction: column; } #chats-page .w-16 { width: 100%; flex-direction: row; justify-content: space-around; } #chats-page .w-1/3 { width: 100%; height: 40%; } } /* Animation for message loading */ @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } } .loading-pulse { animation: pulse 1.5s ease-in-out infinite; }