/* Custom animations and additional styles */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1b;
}

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

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

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0079d3;
    outline-offset: 2px;
}

/* Responsive text sizing */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* Ensure proper contrast for links */
a:hover {
    text-decoration: underline;
}

/* Loading animation enhancement */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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