@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles */
.progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Dark mode toggle transition */
.dark-mode-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Error and warning states */
.bg-yellow-100 {
    background-color: #fffbeb;
}
.border-yellow-500 {
    border-color: #f59e0b;
}
.text-yellow-700 {
    color: #b45309;
}
/* Market card animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.market-card {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

.market-card:nth-child(1) { animation-delay: 0.1s; }
.market-card:nth-child(2) { animation-delay: 0.2s; }
.market-card:nth-child(3) { animation-delay: 0.3s; }
/* ... add more delays as needed */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #805ad5;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #6b46c1;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #553c9a;
}