/* Custom styles that can't be achieved with Tailwind */
#cameraFeed {
    /* Removed mirroring for accurate text recognition */
}

#canvas {
    /* Removed mirroring for accurate text recognition */
}

/* Animation for spin */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Animation for text detection */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.detecting {
    animation: pulse 1.5s infinite;
}

/* Custom scrollbar for translation box */
#detectedText::-webkit-scrollbar,
#translationResult::-webkit-scrollbar {
    width: 6px;
}

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

#detectedText::-webkit-scrollbar-thumb,
#translationResult::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

#detectedText::-webkit-scrollbar-thumb:hover,
#translationResult::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}