/* Custom styles for the Interactive Exam Generator */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--b2));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--p));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--pf));
}

/* Animation for card entrance */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* Pulse animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Enhanced focus states */
input:focus, textarea:focus, select:focus {
    outline: 2px solid hsl(var(--p));
    outline-offset: 2px;
}

/* Custom badge styles */
.badge-custom {
    @apply px-3 py-1 rounded-full text-sm font-semibold;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}
