* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.video-box {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

video {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.video-label {
    padding: 10px;
    background: #f8f9fa;
    text-align: center;
    font-weight: bold;
    z-index: 2;
}

.volume-meter {
    position: absolute;
    bottom: 50px;
    left: 10px;
    right: 10px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.volume-bar {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.volume-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #00ff00;
    transition: width 0.1s ease;
}

.volume-label {
    color: white;
    font-size: 12px;
    min-width: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

input, button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

input {
    background: #fff;
    border: 1px solid #ddd;
    width: 200px;
}

button {
    background: #007bff;
    color: white;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

#hangupBtn {
    background: #dc3545;
}

#hangupBtn:hover {
    background: #c82333;
}

#toggleAudioBtn, #toggleVideoBtn {
    background: #28a745;
}

#toggleAudioBtn:hover, #toggleVideoBtn:hover {
    background: #218838;
}

.mic-test-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.test-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 16px;
}

.test-btn:hover {
    background: #5a6268;
}

.test-btn.testing {
    background: #dc3545;
}

.test-btn.testing:hover {
    background: #c82333;
}

.mic-meter {
    background: #f8f9fa;
    height: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.mic-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
    transition: width 0.1s ease;
}

.mic-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.mic-status {
    color: #6c757d;
    font-size: 14px;
}

.mic-status.good {
    color: #28a745;
}

.mic-status.warning {
    color: #ffc107;
}

.mic-status.error {
    color: #dc3545;
}

.troubleshoot-tips {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.troubleshoot-tips h4 {
    margin-bottom: 10px;
    color: #dc3545;
}

.troubleshoot-tips ol {
    margin: 0;
    padding-left: 20px;
}

.troubleshoot-tips li {
    margin-bottom: 5px;
    color: #666;
}

.mic-status {
    white-space: pre-line;
    line-height: 1.5;
} 