/* Custom animations and styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

.currency-item {
    transition: all 0.2s ease;
}

.currency-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.popular-pair {
    transition: all 0.3s ease;
}

.popular-pair:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .popular-pair {
        padding: 0.5rem;
    }
    
    .popular-pair div:first-child {
        font-size: 0.9rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bg-white {
        background-color: #1a1a1a;
    }
    
    .text-gray-800 {
        color: #f0f0f0;
    }
    
    .text-gray-600 {
        color: #b0b0b0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    .print-only {
        display: block;
    }
}