.microphone-test-component {
    padding: 1%;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
}
.mic-header {
    text-align: center;
    flex-shrink: 0;
}
.mic-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}
.mic-controls {
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.recording-controls {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}
.recording-controls button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: opacity 0.2s;
}
.recording-controls button:hover:not(:disabled) {
    opacity: 0.8;
}
.recording-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.mic-component-record-btn {
    background: #e74c3c;
}
.mic-component-play-btn {
    background: #3498db;
}
.mic-component-reset-btn {
    background: #95a5a6;
}
.microphone-test-component .record-btn { background: #e74c3c; }
.microphone-test-component .play-btn { background: #3498db; }
.microphone-test-component .reset-btn { background: #95a5a6; }

.canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}
.canvas-wrapper {
    flex: 1;
    min-height: 0;
    position: relative;
}
.mic-canvas {
    width: 100%;
    height: 100%;
    background: #222;
    border-radius: 4px;
    display: block;
}
.frequency-markers {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.frequency-marker {
    position: absolute;
    right: 5px;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border-radius: 2px;
    white-space: nowrap;
    transform: translateY(-50%);
}