:root {
    --color-background: #222;
    --color-surface: #333;
    --color-surface-elevated: #444;
    --color-border: #555;
    --color-border-light: #666;
    --color-border-active: #777;
    --color-text: #e0e0e0;
    --color-text-muted: #aaa;
    --color-text-list: #ccc;
    --color-link: #93c5fd;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-small: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --image-filter: brightness(0.85) contrast(1.2);
}

.light-mode {
    --color-background: #f5f5f5;
    --color-surface: #fff;
    --color-surface-elevated: #fafafa;
    --color-border: #ddd;
    --color-border-light: #ccc;
    --color-border-active: #333;
    --color-text: #333;
    --color-text-muted: #666;
    --color-text-list: #444;
    --color-link: #007bff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-small: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --image-filter: none;
}

/* Base Styles */
body {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    margin: 0;
    padding: 20px;
    color: var(--color-text);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--color-surface);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Tabs */
.tabs {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.tab-buttons {
    display: flex;
    margin-bottom: -1px;
}

.tab-button {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.tab-button.active {
    border-bottom: 2px solid var(--color-border-active);
    color: var(--color-text);
}

/* Hide all tab content by default */
.tab-content {
    display: none;
}

/* Show the active tab content */
.tab-content.active {
    display: block;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-container {
    background-color: var(--color-surface-elevated);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-small);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.chart {
    height: 250px;
    width: 100%;
    background-color: var(--color-surface);
    border: 1px dashed var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Images */
.img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    align-items: left;
    padding: 18px;
    object-fit: contain;
}

.img-container img {
    width: 100%;
    height: 100%;
    justify-content: left;
    object-fit: contain;
    filter: var(--image-filter);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
}

a {
    color: var(--color-link);
}

strong {
    color: var(--color-text);
}

ul li {
    color: var(--color-text-list);
}