* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #07111f;
    color: #f5f7fb;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    padding: 28px 16px;
    border-right: 1px solid #223047;
    background: #091525;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 36px;
}

.brand-icon {
    font-size: 32px;
}

.brand h1 {
    font-size: 22px;
    margin: 0;
    line-height: 1.1;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

nav button {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #c9d3e5;
    font-size: 16px;
    cursor: pointer;
}

nav button:hover {
    background: #13233a;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    color: #93a4bd;
    font-size: 14px;
}

.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
}

h2 {
    font-size: 34px;
    margin-top: 0;
}

h3 {
    color: #f5f7fb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    border: 1px solid #26364f;
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(180deg, #132033, #0d1828);
    min-height: 140px;
}

.stat-card strong {
    display: block;
    color: #cbd5e1;
    margin-bottom: 18px;
    font-size: 16px;
}

.stat-card span {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
}

.stat-card small {
    display: block;
    margin-top: 10px;
    color: #9fb0c8;
}

.form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

input,
button {
    padding: 10px;
}

input {
    background: #0d1828;
    border: 1px solid #26364f;
    color: #ffffff;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0d1828;
    border: 1px solid #26364f;
}

th,
td {
    border: 1px solid #26364f;
    padding: 10px;
}

th {
    background: #132033;
    color: #cbd5e1;
}

td {
    color: #f5f7fb;
}

#monthlyChart {
    max-height: 300px;
    margin-bottom: 30px;
}

.game-search {
    position: relative;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0d1828;
    border: 1px solid #26364f;
    z-index: 1000;
}

.search-item {
    padding: 8px;
    cursor: pointer;
    color: #ffffff;
}

.search-item:hover {
    background: #13233a;
}

.hidden {
    display: none;
}
