/* Custom styles for enhanced UI */

/* Code block styling */
pre {
    background-color: #1f2937 !important;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #374151;
}

code {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

/* Modal backdrop blur */
#notes-modal {
    backdrop-filter: blur(4px);
}

/* Smooth transitions for interactive elements */
button, input[type="checkbox"] {
    transition: all 0.2s ease-in-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Focus styles */
button:focus, input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Question list hover effects */
#questions li:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Badge animations */
.difficulty-badge {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    #questions li {
        padding: 0.75rem;
    }

    .flex.items-center.space-x-3 > * {
        margin-right: 0.5rem;
    }
}