/* Custom styles for enhanced UX */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar for prompt display */
pre::-webkit-scrollbar {
    width: 8px;
}

pre::-webkit-scrollbar-track {
    background: #f1f1f1;
}

pre::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth transitions */
button, input, select, textarea {
    transition: all 0.2s ease-in-out;
}

/* Focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Card hover effects */
.bg-white {
    transition: box-shadow 0.2s ease-in-out;
}

.bg-white:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Success/error states */
.success-border {
    border-color: #10b981;
}

.error-border {
    border-color: #ef4444;
}

/* Progress indicator */
.progress-bar {
    background: linear-gradient(90deg, #1e3a8a, #10b981);
    height: 4px;
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}