/* Additional Quick Add Task Mobile Enhancements */

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 640px) {
    #quick-add-modal input[type="text"],
    #quick-add-modal input[type="email"],
    #quick-add-modal input[type="date"],
    #quick-add-modal input[type="time"],
    #quick-add-modal textarea,
    #quick-add-modal select {
        font-size: 16px !important;
    }
}

/* Smooth modal animations for mobile */
@media (max-width: 479px) {
    #quick-add-modal {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    #quick-add-modal.hidden {
        transform: translateY(100%);
        opacity: 0;
    }
    
    #quick-add-modal:not(.hidden) {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Safe area insets for notched devices */
.quick-add-fab {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem)) !important;
    right: max(1rem, env(safe-area-inset-right, 1rem)) !important;
}

/* Enhanced touch feedback */
@media (max-width: 640px) {
    .quick-add-fab:active {
        transform: scale(1.05) !important;
    }
    
    #quick-task-voice-btn:active {
        transform: scale(0.98) !important;
        opacity: 0.9;
    }
    
    #quick-add-modal button:active {
        transform: scale(0.98) !important;
    }
}

/* Keyboard adaptations for mobile */
@supports (height: 100dvh) {
    @media (max-width: 640px) {
        #quick-add-modal {
            height: 100dvh !important;
        }
    }
}