/* Custom styles for the crypto converter */

/* Loading animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Pulse animation for status indicators */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Currency flag and icon styles */
.currency-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Conversion result card animations */
.conversion-card {
    transition: all 0.3s ease;
}

.conversion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .conversion-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Status indicator styles */
.status-online {
    background-color: #10b981;
    color: white;
}

.status-offline {
    background-color: #ef4444;
    color: white;
}

.status-loading {
    background-color: #f59e0b;
    color: white;
}

/* Input focus styles */
input:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
}

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

/* Copy button styles */
.copy-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.conversion-card:hover .copy-btn {
    opacity: 1;
}

/* Error message styles */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.dark .error-message {
    background-color: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

/* Success message styles */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.dark .success-message {
    background-color: #052e16;
    border-color: #166534;
    color: #86efac;
}


