@font-face {
    font-family: 'Front';
    src: url('/static/assets/fonts/BlackOpsOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0a0a;
    --card: #111111;
    --border: #222222;
    --text: #e0e0e0;
    --text-muted: #888888;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Front', 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

nav {
    background-color: var(--bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    text-decoration: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
}

.nav-link:hover {
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.stats-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stats-header h1 {
    font-size: 2rem;
    color: var(--text);
}

.big-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
}

.full-width {
    grid-column: 1/-1;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.6rem;
}

canvas {
    max-height: 300px;
    width: 100%;
}

.scrollable-chart {
    overflow-x: auto;
    overflow-y: visible;
}

.scrollable-chart canvas {
    min-width: 500px;
    height: auto;
}

.btn-back {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.btn-back:hover {
    background: var(--accent);
    color: white;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: 0.2s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media(max-width:768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: left 0.2s;
        z-index: 99;
    }

    .nav-links.active {
        left: 0;
    }

    .navbar-container {
        flex-wrap: nowrap;
    }

    .container {
        padding: 0 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .big-number {
        font-size: 2.2rem;
    }

    .stats-header h1 {
        font-size: 1.5rem;
    }
}

.scrollable-chart {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
}