/* Dynamic Viewport Height for Mobile Browsers */
body {
    height: 100vh; /* Fallback */
    height: 100dvh;
}

/* Custom scrollbar for Light theme */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for new messages */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.message-animate {
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Prevent iOS zoom on input focus */
input, textarea, select {
    font-size: 16px !important; 
}

/* Mobile tap highlight removal */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Action buttons hover effect */
.action-btn {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
}
.persona-item:hover .action-btn {
    opacity: 1;
    transform: translateX(0);
}
@media (hover: none) {
    .action-btn {
        opacity: 1;
        transform: translateX(0);
    }
}