/* Enhanced features for vexy_json tool */

/* WASM loading animations */
.loading-fade {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Example highlighting */
.example-highlight {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
}

/* Enhanced error display */
.error-line {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 0.5rem;
    margin: 0.25rem 0;
}

/* Performance indicators */
.perf-good { color: #10b981; }
.perf-medium { color: #f59e0b; }
.perf-slow { color: #ef4444; }

/* Share functionality */
.share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 400px;
    width: 90vw;
}

[data-theme="dark"] .share-popup {
    background: #1f2937;
    color: white;
}

/* Copy feedback */
.copy-feedback {
    position: absolute;
    top: -2rem;
    right: 0;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(0.5rem); }
    20%, 80% { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}