/* Custom styles for enhanced visual effects */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

/* Animation for loading state */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Custom gradient text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

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

/* Focus styles for accessibility */
input:focus, button:focus {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: 2px;
}

/* Custom backdrop blur for better browser support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Hover effects for cards */
.bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Loading button animation */
button:disabled .animate-spin {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Responsive font sizing */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* Enhanced copy button feedback */
button[onclick*="copyToClipboard"]:active {
    transform: scale(0.95);
}

/* JSON syntax highlighting enhancement */
pre {
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Custom selection color */
::selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Bug fix highlight styles */
.bg-green-500\/20 {
    background-color: rgba(34, 197, 94, 0.2);
}

.text-green-300 {
    color: rgb(134, 239, 172);
}

/* Error message styling */
.bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.2);
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3);
}

.text-red-300 {
    color: rgb(252, 165, 165);
}

/* Enhanced visual feedback */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}