body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.container {
    margin: 0 auto;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
    cursor: pointer;
}

h2::before {
    content: "🔗 ";
    visibility: hidden;
}

h2:hover::before {
    visibility: visible;
}

.controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-group {
    display: inline-flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #f0f0f0;
}

button.active {
    background: #0060df;
    color: white;
    border-color: #0060df;
}

.platform-links a {
    color: #0060df;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.platform-links a:hover {
    background: #f0f8ff;
    text-decoration: underline;
}


.charts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 800px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #fee;
    color: #c00;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}


/* Style Plotly tooltips */
.hoverlayer .hovertext {
    pointer-events: none !important;
}

.hoverlayer .hovertext path {
    fill: #2a2a2a !important;
    stroke: #2a2a2a !important;
    opacity: 0.95 !important;
}

.hoverlayer .hovertext text {
    font-size: 14px !important;
    font-weight: 400 !important;
}