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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    margin-bottom: 10px;
    color: #3498db;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.device-selector {
    flex: 1;
}

select, button {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

select {
    width: 100%;
    max-width: 300px;
    background-color: #fff;
}

button {
    margin-left: 10px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

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

.visualizer-container {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

canvas {
    width: 100%;
    height: 150px;
    background-color: #2c3e50;
    border-radius: 4px;
}

.status {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#mic-status {
    margin-bottom: 10px;
    font-weight: bold;
}

.mic-connected {
    color: #27ae60;
}

.mic-disconnected {
    color: #e74c3c;
}

#volume-meter {
    display: flex;
    align-items: center;
}

.volume-label {
    margin-right: 10px;
}

.volume-bar-container {
    flex: 1;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 10px;
}

#volume-bar {
    height: 100%;
    width: 0;
    background-color: #3498db;
    border-radius: 10px;
    transition: width 0.1s ease;
}

#volume-value {
    min-width: 60px;
    text-align: right;
}

@media (min-width: 768px) {
    .visualizers {
        flex-direction: row;
    }

    .visualizer-container {
        flex: 1;
    }
}