/* Custom CSS for Translation Scoring App */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Radio button styling */
.radio-container {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.radio-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

/* Selected state for translation options */
.translation-option.selected .radio-container {
    border-color: #3b82f6;
    background-color: #3b82f6;
}

.translation-option.selected .radio-circle {
    background-color: white;
    transform: scale(1.1);
}

.translation-option.selected > div {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Hover effects */
.translation-option:hover .radio-container {
    border-color: #93c5fd;
}

/* Focus states for accessibility */
.translation-option:focus-within > div {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading animation for next button */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .translation-option > div {
        padding: 12px;
    }
    
    .translation-option span {
        font-size: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode body {
        background-color: #0f172a;
        color: #f8fafc;
    }
    
    .dark-mode .bg-white {
        background-color: #1e293b;
    }
    
    .dark-mode .text-gray-800 {
        color: #f1f5f9;
    }
    
    .dark-mode .text-gray-700 {
        color: #e2e8f0;
    }
    
    .dark-mode .border-gray-100 {
        border-color: #334155;
    }
    
    .dark-mode .bg-gray-50 {
        background-color: #1e293b;
    }
}