/* Custom styles for Controller Config Comparator */

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

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7c3aed, #db2777);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Upload area hover effects */
.upload-area label:hover {
    background: rgba(139, 92, 246, 0.1);
}
/* Table row hover effects */
#differencesTable tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Highlight for difference description */
.diff-highlight {
    background: rgba(245, 158, 11, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}
/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

/* Pulse animation for compare button */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* File info card animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info-enter {
    animation: slideIn 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .upload-area label {
        height: 200px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top: 3px solid #8b5cf6;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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