* {
    user-select: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.5);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.7);
}

/* Message animations */
@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message-animation {
    animation: message-in 0.3s ease-out forwards;
}

/* Search highlight effect */
.highlight {
    background-color: rgba(255, 213, 13, 0.4);
    border-radius: 2px;
    padding: 0 2px;
}

/* Search suggestions dropdown */
.search-suggestions {
    display: none;
    position: absolute;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    top: 100%;
    left: 0;
}
.search-wrapper:focus-within .search-suggestions {
    display: block;
}

/* Mobile chat sliding panel */
@media (max-width: 768px) {
    .mobile-chat-open {
        transform: translateX(0);
    }
    .mobile-chat-closed {
        transform: translateX(100%);
    }
}

.mobile-chat-open {
    transform: translateX(0);
}
.mobile-chat-closed {
    transform: translateX(100%);
}
@media (max-width: 768px) {
    .mobile-chat-open {
        z-index: 50;
    }
}
.toast {
    transition: transform 0.3s ease-in-out;
}
