/* Custom syntax highlighting for code preview */
.syntax-highlight {
    line-height: 1.6;
}

.syntax-highlight code {
    color: #e5e7eb;
}

/* Simulate syntax highlighting with CSS */
.syntax-highlight code::before {
    content: "";
    display: inline;
}

/* Custom scrollbar */
.syntax-highlight::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.syntax-highlight::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.syntax-highlight::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.syntax-highlight::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

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

button:active {
    transform: translateY(1px);
}

/* Glass morphism effect */
.backdrop-blur-sm {
    backdrop-filter: blur(8px);
}

/* Custom animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Responsive design improvements */
@media (max-width: 1024px) {
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Better focus states */
input:focus, select:focus, textarea:focus, button:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Code block styling */
pre code {
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading state */
.loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #4b5563;
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced gradient text */
.bg-gradient-to-r.from-pink-400.to-purple-400 {
    background: linear-gradient(90deg, #f472b6, #a855f7);
}

/* Table improvements */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table th, table td {
    border-bottom: 1px solid #374151;
}

table th {
    font-weight: 600;
    color: #d1d5db;
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Select dropdown styling */
select option {
    background-color: #1f2937;
    color: #e5e7eb;
}

/* Custom checkbox/radio styling */
input[type="checkbox"], input[type="radio"] {
    accent-color: #8b5cf6;
}