body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0 16px;
    background: #0b1220;
    color: #e2e8f0;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.primary-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.visualization-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

button {
    padding: 10px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #45a049;
}

button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

select {
    padding: 8px;
    border-radius: 4px;
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

.visualizer-container {
    position: relative;
    width: 100%;
    height: 450px;
    background: #0f172a;
    border-radius: 8px;
    padding: 20px 20px 20px 50px;  /* Increased left padding to 50px */
    box-sizing: border-box;
    border: 1px solid #1f2937;
}

#visualizer {
    width: 100%;
    height: 400px;
}

.status {
    margin-top: 10px;
    font-size: 14px;
    color: #94a3b8;
}

.tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    display: none;
    z-index: 1000;
    white-space: nowrap;
    border: 1px solid #334155;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.frequency-axis {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    padding: 0;
    color: #cbd5e1;
}

.db-axis {
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 30px;
    width: 45px;  /* Increased from 30px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #cbd5e1;
    padding: 10px 0;
    text-align: right;
}

.frequency-axis span,
.db-axis span {
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.9);
}

.range-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.range-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.range-toggle input[type="radio"],
.range-toggle input[type="checkbox"] {
    cursor: pointer;
}
