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

:root {
    --bg-dark: #0a0f1a;
    --card-bg: rgba(15, 23, 42, 0.8);
    --accent-primary: #adff2f;
    /* YellowGreen */
    --accent-secondary: #32cd32;
    /* LimeGreen */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(173, 255, 47, 0.2);
    --neon-green: #adff2f;
    --neon-purple: #a78bfa;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(173, 255, 47, 0.1) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(50, 205, 50, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

h1,
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-table-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

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

/* Table Enhancements */
th {
    background: rgba(30, 41, 59, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.002);
}

/* Staggered Row Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate3d(-10px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.row-animate {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

/* Controls Visibility Fix */
select#section-filter,
input#search-bar {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--accent-primary) !important;
    color: white !important;
}

/* Controls Visibility Fix */
select#section-filter,
input#search-bar {
    background: #0d1117 !important;
    border: 1px solid var(--accent-primary) !important;
    color: white !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 0 10px rgba(173, 255, 47, 0.1) !important;
}

select#section-filter option {
    background: #0d1117;
    color: white;
}

/* Transitions */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Stats Cards */
.stat-card {
    transition: transform 0.3s ease;
}

/* Search Icon Placeholder Behavior */
#search-bar:focus+.placeholder-hide-icon,
#search-bar:not(:placeholder-shown)+.placeholder-hide-icon {
    opacity: 0;
    pointer-events: none;
}

.placeholder-hide-icon {
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Custom Section Badge (Two-part Oval) */
.section-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 2px 12px;
    background: rgba(255, 255, 255, 0.05);
    min-width: 80px;
}

.badge-top {
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    padding-top: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
}

.badge-bottom {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 2px;
    width: 100%;
    text-align: center;
}

/* Mobile Specific Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .glass-card {
        padding: 1.25rem !important;
    }

    .stat-card {
        padding: 1rem !important;
    }

    .stat-card h2 {
        font-size: 1.5rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    .flex-col-mobile {
        flex-direction: column !important;
    }

    .w-full-mobile {
        width: 100% !important;
    }

    /* Table optimization */
    td,
    th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .hide-on-mobile {
        display: none !important;
    }
}