/* Base transitions for smooth theme changes */ body { transition: background-color 0.3s ease, color 0.3s ease; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #555; } .dark ::-webkit-scrollbar-track { background: #2d3848; } .dark ::-webkit-scrollbar-thumb { background: #4a5568; } .dark ::-webkit-scrollbar-thumb:hover { background: #2d3748; } /* Animation for sidebar collapse */ @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } } @keyframes slideOut { from { transform: translateX(0); } to { transform: translateX(-100%); } } .slide-in { animation: slideIn 0.3s forwards; } .slide-out { animation: slideOut 0.3s forwards; } /* Messenger animations */ @keyframes floatIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes floatOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } .float-in { animation: floatIn 0.3s forwards; } .float-out { animation: floatOut 0.3s forwards; }