/* Custom styles for OpticAll Voice Detection */

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #334155;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Component refinements */
#drop-zone {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.08), 0 8px 10px -6px rgba(59, 130, 246, 0.08);
}

.dark .result-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Progress bar styling */
.p-bar-bg {
    @apply h-1.5 w-full bg-slate-100 dark:bg-slate-800 rounded-full overflow-hidden;
}

.p-bar-fill {
    @apply h-full bg-primary-500 rounded-full transition-all duration-700;
}

/* Pulse for processing */
@keyframes processing-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.processing {
    animation: processing-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Top Three List */
.top-three-row {
    @apply flex items-center justify-between p-2 rounded-lg hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors;
}

.confidence-circle circle {
    transition: stroke-dashoffset 0.8s ease-in-out;
}
