/** * SearchMessages CSS */ .search-messages-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: flex-start; justify-content: flex-end; z-index: 2000; animation: fadeIn 0.2s ease-in-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .search-messages-panel { background: #2c2f33; width: 100%; max-width: 400px; height: 100vh; display: flex; flex-direction: column; box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5); animation: slideInRight 0.3s ease-out; } @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } } .search-header { padding: 1.5rem; border-bottom: 1px solid #23272a; display: flex; align-items: center; justify-content: space-between; background: #23272a; } .search-header h3 { margin: 0; font-size: 1.125rem; color: #ffffff; font-weight: 600; } .close-btn { background: none; border: none; color: #72767d; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .close-btn:hover { color: #ffffff; } .search-input-group { padding: 1rem 1.5rem; position: relative; } .search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem; border: 1px solid #7289da; background: rgba(114, 137, 218, 0.1); color: #ffffff; border-radius: 20px; font-size: 0.9375rem; outline: none; transition: border-color 0.2s; } .search-input:focus { border-color: #00d9ff; background: rgba(0, 217, 255, 0.05); } .search-input::placeholder { color: #72767d; } .search-icon { position: absolute; left: 2rem; top: 50%; transform: translateY(-50%); color: #72767d; } .filter-buttons { display: flex; gap: 0.5rem; padding: 0 1.5rem 1rem 1.5rem; overflow-x: auto; scroll-behavior: smooth; } .filter-btn { padding: 0.5rem 1rem; border: 1px solid #7289da; background: transparent; color: #b5bac1; border-radius: 16px; cursor: pointer; font-size: 0.8125rem; font-weight: 500; transition: all 0.2s; white-space: nowrap; } .filter-btn:hover { background: rgba(114, 137, 218, 0.1); color: #ffffff; } .filter-btn.active { background: #7289da; color: #ffffff; border-color: #7289da; } .search-results { flex: 1; padding: 1rem 1.5rem; overflow-y: auto; } .no-results { text-align: center; padding: 3rem 1rem; color: #72767d; font-size: 1rem; } .results-count { color: #b5bac1; font-size: 0.8125rem; margin: 0 0 1rem 0; text-transform: uppercase; letter-spacing: 0.5px; } .results-list { display: flex; flex-direction: column; gap: 0.75rem; } .result-item { background: rgba(114, 137, 218, 0.1); border-left: 3px solid #7289da; padding: 0.75rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; } .result-item:hover { background: rgba(114, 137, 218, 0.2); border-left-color: #00d9ff; } .result-sender { font-size: 0.8125rem; color: #7289da; font-weight: 600; margin-bottom: 0.25rem; } .result-content { font-size: 0.875rem; color: #b5bac1; margin-bottom: 0.5rem; word-break: break-word; } .result-attachments { display: flex; flex-wrap: wrap; gap: 0.5rem; } .attachment-badge { background: rgba(0, 217, 255, 0.1); border: 1px solid #00d9ff; color: #00d9ff; padding: 0.25rem 0.5rem; border-radius: 3px; font-size: 0.75rem; display: inline-block; } /* Scrollbar styling */ .search-results::-webkit-scrollbar { width: 6px; } .search-results::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); } .search-results::-webkit-scrollbar-thumb { background: rgba(0, 217, 255, 0.2); border-radius: 3px; } .search-results::-webkit-scrollbar-thumb:hover { background: rgba(0, 217, 255, 0.4); } @media (max-width: 768px) { .search-messages-panel { max-width: 100%; } .search-input-group, .filter-buttons { padding-left: 1rem; padding-right: 1rem; } .search-results { padding: 1rem; } }