
/* Responsive design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .w-80 {
        width: 100%;
        border-radius: 0;
        height: auto;
        max-height: 60vh;
    }
    
    #authModal > div {
        width: 90%;
    }
}

/* Modern UI elements */
#authModal input {
    transition: all 0.2s ease;
}

#authModal input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(167, 139, 250, 0.2);
}

/* Smooth transitions for all interactive elements */
button, input, .chat-item, .group-item, .search-result-item {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c084fc;
}
/* Chat item hover effect */
.chat-item:hover, .group-item:hover {
    transform: translateX(4px);
    background-color: #f3e8ff;
    box-shadow: 0 4px 6px -1px rgba(167, 139, 250, 0.1);
}
/* Search result item hover effect */
.search-result-item:hover {
    background-color: #f3e8ff;
}

/* Button active state */
button:active {
    transform: scale(0.95);
}

/* Modal animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#searchModal {
    animation: modalFadeIn 0.3s ease-out;
}