@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #041220;
    color: #e8f2fc;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* Table hover effects */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(11, 51, 91, 0.7);
}

/* Trophy glow for top 3 */
.trophy-glow {
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

/* Active nav link */
.nav-link.active {
    color: #dd222c;
    font-weight: 600;
}

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

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

::-webkit-scrollbar-track {
    background: #06192d;
}

::-webkit-scrollbar-thumb {
    background: #114c88;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1666b6;
}

/* Rank colors */
.rank-1 {
    color: #fbbf24;
}

.rank-2 {
    color: #d1d5db;
}

.rank-3 {
    color: #cd7f32;
}

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

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

/* Responsive table */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem 0.5rem !important;
    }
}

/* Disabled button styles */
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Search input focus */
input:focus {
    outline: none;
}

/* Profit colors */
.profit-positive {
    color: #10b981;
}

.profit-negative {
    color: #dd222c;
}

/* Card hover effect */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Page transition */
section {
    min-height: 60vh;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
