.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* 按钮 */
.btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #5a67d8;
}

.btn-danger {
    background: #f56565;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-secondary {
    background: #718096;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.icon-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* 用户列表 */
.user-list {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.user-list h3 {
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#usersContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.user-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: box-shadow 0.1s ease;
}

.user-card.local-user {
    background: #f8f9fa;
    border: 1px solid #999999;
}

.user-card.speaking {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1), 0 0 0 2px #f56565;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #4a5568;
}

.user-status {
    font-size: 12px;
    color: #718096;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background: #48bb78;
}

.status-inactive {
    background: #cbd5e0;
}

/* 音频控制 */
.audio-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.audio-controls button {
    flex: 1;
}

.audio-settings {
    background: #f7fafc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.audio-settings h4 {
    color: #4a5568;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.settings-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4a5568;
    font-weight: 500;
}

.settings-row select {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.audio-settings .settings-row label {
    width: 90px;
    flex-shrink: 0;
    text-align: left;
}

.mic-label {
    width: 60px !important;
    flex-shrink: 0;
    text-align: left;
}

.audio-settings .settings-row input[type=range] {
    width: calc(95% - 130px - 10px);
    flex-shrink: 0;
    min-width: 80px;
}

.audio-settings .settings-row span {
    width: 45px;
    flex-shrink: 0;
    text-align: right;
}

/* 连接状态 */
.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.connection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48bb78;
}

.connection-dot.disconnected {
    background: #f56565;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #48bb78;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

/* 单个用户音量滑块 */
.volume-wrapper {
    position: relative;
    display: inline-block;
    padding: 5px;
    margin: -5px;
}

.user-card.local-user .volume-wrapper {
    display: none;
}

.volume-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: #4a5568;
    transition: color 0.2s;
    position: relative;
    z-index: 20;
}

.volume-icon.muted {
    color: #f56565;
}

.user-volume-slider {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    display: none;
    width: 150px;
}

.user-volume-slider::before {
    content: "";
    position: absolute;
    top: -25px;
    bottom: -20px;
    left: -40px;
    right: -40px;
    background: transparent;
    z-index: -1;
}

.volume-wrapper:hover .user-volume-slider,
.volume-wrapper:focus-within .user-volume-slider {
    display: flex;
}

.user-volume-slider input {
    width: 100%;
}
