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

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

header {
    background: #1e293b;
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #334155;
}

header h1 {
    font-size: 1.8rem;
    color: #38bdf8;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1.5rem;
}

.controls {
    width: 320px;
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.controls h2, .controls h3 {
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

.section {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin: 0.4rem 0;
    cursor: pointer;
}

input[type="number"] {
    width: 100%;
    padding: 0.4rem;
    background: #0f172a;
    border: 1px solid #475569;
    color: white;
    border-radius: 6px;
}

button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #0284c7;
}

#clearBtn {
    background: #475569;
}

main {
    flex: 1;
}

.chart-container {
    background: #1e293b;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    height: 500px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #334155;
}

th {
    background: #334155;
    color: #94a3b8;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.instrument-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}
