* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a3a5e;
    padding-bottom: 0;
}

.tab {
    padding: 10px 20px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
    color: #ccc;
}

.tab.active {
    color: #2E86AB;
    border-bottom-color: #2E86AB;
}

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

.stat-card {
    background: #16213e;
    padding: 20px;
    border-radius: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2E86AB;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    margin-top: 4px;
}

.panel {
    background: #16213e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel h2 {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 12px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.panel-header h2 {
    margin-bottom: 0;
}

.zoom-btn {
    padding: 6px 14px;
    background: #2a3a5e;
    color: #aaa;
    border: 1px solid #3a4a6e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}

.zoom-btn:hover {
    background: #3a4a6e;
    color: #eee;
}

.zoom-btn.active {
    background: #2E86AB;
    border-color: #2E86AB;
    color: #fff;
}

.chart-container.zoomed {
    overflow-x: scroll;
    cursor: grab;
}

.chart-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #2a3a5e;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a2e;
}

tbody tr:hover {
    background: #1a2744;
}

code {
    color: #A23B72;
    font-size: 14px;
}

.log-list {
    max-height: 500px;
    overflow-y: auto;
}

.no-data {
    color: #666;
    font-style: italic;
    padding: 20px 0;
}
