* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #36393f;
    --bg-secondary: #2f3136;
    --bg-tertiary: #202225;
    --bg-hover: #40444b;
    --text-primary: #dcddde;
    --text-secondary: #b9bbbe;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --success: #23a55a;
    --danger: #f23f42;
    --warning: #f0b232;
    --muted-bg: #ed4245;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    background: #0a0a0f;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(237, 66, 69, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(88, 101, 242, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0f 0%, #1a0f1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
}

/* Top Bar */
.top-bar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(237, 66, 69, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(237, 66, 69, 0.1);
    position: relative;
    z-index: 10;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.room-topic {
    color: var(--text-secondary);
    font-style: italic;
}

.room-timer {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.room-status {
    font-size: 16px;
    opacity: 0.7;
}

.server-info h1 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ed4245, #f23f42, #ed4245);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease infinite;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(237, 66, 69, 0.3);
    font-family: 'Courier New', monospace;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f23f42;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: var(--success);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(5px);
    padding: 20px;
    position: relative;
}

/* Active Speaker Visualization */
.active-speaker-viz {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.speaker-waveform {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 100px;
    margin-bottom: 20px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(to top, #ed4245, #f23f42, #ff6b6b);
    border-radius: 3px;
    min-height: 10px;
    animation: wavePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(237, 66, 69, 0.5);
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.4s; }
.wave-bar:nth-child(8) { animation-delay: 0.3s; }
.wave-bar:nth-child(9) { animation-delay: 0.2s; }
.wave-bar:nth-child(10) { animation-delay: 0.1s; }

@keyframes wavePulse {
    0%, 100% { height: 20px; opacity: 0.6; }
    50% { height: 80px; opacity: 1; }
}

.speaker-info {
    color: var(--text-primary);
}

.speaker-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(237, 66, 69, 0.5);
}

.speaker-status {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Empty State */
.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.empty-message {
    margin-bottom: 40px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-message h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-message p {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

.ambient-visualization {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.ambient-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(237, 66, 69, 0.2);
    border-radius: 50%;
    animation: ambientPulse 4s ease-in-out infinite;
}

.ambient-ring:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.ambient-ring:nth-child(2) {
    width: 150px;
    height: 150px;
    animation-delay: 1.3s;
}

.ambient-ring:nth-child(3) {
    width: 200px;
    height: 200px;
    animation-delay: 2.6s;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Participant Card */
.participant-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.9), rgba(15, 15, 20, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 220px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(237, 66, 69, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: visible;
    animation: cardSlideIn 0.4s ease;
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.participant-card:hover::before {
    left: 100%;
}

.participant-card:hover {
    background: linear-gradient(135deg, rgba(64, 68, 75, 0.95), rgba(47, 49, 54, 0.95));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3), 0 0 40px rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.5);
}

.participant-card.speaking {
    border-color: #ed4245;
    box-shadow: 0 0 30px rgba(237, 66, 69, 0.6), 0 0 60px rgba(237, 66, 69, 0.3);
    animation: speakingGlow 2s ease-in-out infinite;
}

@keyframes speakingGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(237, 66, 69, 0.6), 0 0 60px rgba(237, 66, 69, 0.3); }
    50% { box-shadow: 0 0 40px rgba(237, 66, 69, 0.8), 0 0 80px rgba(237, 66, 69, 0.4); }
}

.participant-card.speaking .voice-reactive-ring {
    opacity: 1;
    animation: voiceRingPulse 1.5s ease-in-out infinite;
}

.voice-reactive-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #ed4245;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(237, 66, 69, 0.5);
}

@keyframes voiceRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.participant-card.local {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.4), 0 0 50px rgba(88, 101, 242, 0.15);
}

.participant-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(88, 101, 242, 0.3));
    border: 4px solid var(--bg-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.participant-avatar::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865f2, #eb459e, #57f287);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

.participant-card:hover .participant-avatar::after {
    opacity: 0.6;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.participant-card.speaking .participant-avatar {
    border-color: var(--success);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(35, 165, 90, 0.6), 0 0 50px rgba(35, 165, 90, 0.3);
    animation: avatarPulse 1.5s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.15); }
}

.participant-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-align: center;
}

.participant-status {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.participant-status.talking {
    color: #ed4245;
    text-shadow: 0 0 10px rgba(237, 66, 69, 0.5);
    animation: statusPulse 1s ease-in-out infinite;
}

.participant-status.muted {
    color: #f23f42;
}

.participant-status.idle {
    color: var(--text-secondary);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Status Icons */
.status-icons {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.status-icon {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 12px;
}

.status-icon.muted {
    background: var(--muted-bg);
    color: white;
}

/* Info Bar */
.info-bar {
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.info-value.connection-quality {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.info-value.connection-quality.excellent {
    background: var(--success);
    color: white;
}

.info-value.connection-quality.good {
    background: #23a55a;
    color: white;
}

.info-value.connection-quality.fair {
    background: var(--warning);
    color: white;
}

.info-value.connection-quality.poor {
    background: var(--danger);
    color: white;
}

/* Bottom Controls */
.bottom-controls {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(237, 66, 69, 0.2);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(237, 66, 69, 0.1);
    position: relative;
    z-index: 10;
}

.control-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mic-meter-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mic-meter-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.mic-meter-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.mic-meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ed4245, #f23f42);
    border-radius: 2px;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(237, 66, 69, 0.5);
}

.quality-indicators {
    display: flex;
    gap: 16px;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.quality-icon {
    font-size: 14px;
}

.quality-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.control-center {
    display: flex;
    gap: 12px;
}

.control-right {
    display: flex;
    align-items: center;
}

.expand-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(237, 66, 69, 0.3);
}

.leave-btn.confirming {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    animation: leaveWarning 0.5s ease infinite;
}

@keyframes leaveWarning {
    0%, 100% { box-shadow: 0 4px 15px rgba(242, 63, 66, 0.4), 0 0 30px rgba(242, 63, 66, 0.2); }
    50% { box-shadow: 0 6px 25px rgba(242, 63, 66, 0.7), 0 0 50px rgba(242, 63, 66, 0.4); }
}

/* Ghost Slots */
.ghost-slots {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    opacity: 0.3;
}

.ghost-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: ghostPulse 2s ease-in-out infinite;
}

@keyframes ghostPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.control-btn:hover::before {
    width: 300px;
    height: 300px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.mute-btn {
    background: linear-gradient(135deg, #40444b, #36393f);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mute-btn:hover {
    background: linear-gradient(135deg, #4f545c, #40444b);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mute-btn.muted {
    background: linear-gradient(135deg, #ed4245, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 66, 69, 0.4), 0 0 30px rgba(237, 66, 69, 0.2);
    animation: mutedPulse 2s ease-in-out infinite;
}

@keyframes mutedPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(237, 66, 69, 0.4), 0 0 30px rgba(237, 66, 69, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(237, 66, 69, 0.6), 0 0 40px rgba(237, 66, 69, 0.3); }
}

.leave-btn {
    background: linear-gradient(135deg, #f23f42, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 63, 66, 0.4), 0 0 30px rgba(242, 63, 66, 0.2);
}

.leave-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f23f42);
    box-shadow: 0 6px 20px rgba(242, 63, 66, 0.5), 0 0 40px rgba(242, 63, 66, 0.3);
}

/* Join Prompt */
.join-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    animation: floatUp 2s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4), 0 0 30px rgba(88, 101, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5), 0 0 40px rgba(88, 101, 242, 0.3);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #1e8e4a;
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #4f545c;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
}

.mic-test-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Audio Visualizer */
.audio-visualizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    width: 100%;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.visualizer-bar {
    width: 8px;
    background: linear-gradient(to top, var(--accent), var(--success));
    border-radius: 4px;
    transition: height 0.1s ease;
    min-height: 4px;
}

.mic-level-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

/* Settings Panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

#volumeValue,
#inputGainValue {
    min-width: 50px;
    text-align: right;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.device-select {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.device-select:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
    appearance: checkbox;
    -webkit-appearance: checkbox;
}

/* Scrollbar */
.participants-grid::-webkit-scrollbar {
    width: 8px;
}

.participants-grid::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.participants-grid::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

.participants-grid::-webkit-scrollbar-thumb:hover {
    background: #4f545c;
}

/* Avatar Colors */
.avatar-color-1 { background: #5865f2; }
.avatar-color-2 { background: #57f287; }
.avatar-color-3 { background: #fee75c; }
.avatar-color-4 { background: #eb459e; }
.avatar-color-5 { background: #ed4245; }
.avatar-color-6 { background: #f37b68; }
.avatar-color-7 { background: #faa61a; }
.avatar-color-8 { background: #1abc9c; }
