body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at center, #1a1c24 0%, #0f1015 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #e2e8f0;
}
.voice-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 360px;
    box-sizing: border-box;
}
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}
.room-hash {
    font-size: 11px;
    color: #38bdf8;
    font-family: monospace;
}
.users-badge {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 5px;
}
.visualizer-container {
    position: relative;
    background: #0f172a;
    border-radius: 12px;
    height: 100px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.status-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    transition: background-color 0.3s;
}
.pulse-indicator.active {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.mic-meter-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 5px;
    text-align: left;
}
.volume-container {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}
.volume-bar {
    width: 0%;
    height: 100%;
    background: #22c55e;
    transition: width 0.05s ease;
}
.sliders-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.slider-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 5px;
}
.slider-group-mic {
    text-align: left;
    font-size: 12px;
    margin-bottom: 15px;
}
.slider-mic-input {
    width: 100%;
    margin-top: 5px;
}
.slider-group label {
    font-size: 12px;
    color: #94a3b8;
}
.slider-group input[type="range"] {
    appearance: none;
    background: #334155;
    height: 6px;
    border-radius: 3px;
    outline: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    transition: transform 0.1s;
}
.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.btn {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-primary { background: #0284c7; color: white; }
.btn-primary:hover:not(:disabled) { background: #0369a1; }
.btn-danger { background: #b91c1c; color: white; }
.btn-danger:hover:not(:disabled) { background: #991b1b; }
.btn-warning { background: #d97706; color: white; }
.btn-warning:hover:not(:disabled) { background: #b45309; }
.btn-warning.muted { background: #475569; }
.stats-box {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    margin: 2px 0;
}
.stat-row span:last-child {
    font-family: monospace;
    color: #cbd5e1;
}
.invite-box {
    text-align: left;
    font-size: 12px;
}
.invite-box label { color: #94a3b8; display: block; margin-bottom: 5px; }
.invite-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #0f172a;
    color: #38bdf8;
    box-sizing: border-box;
    font-size: 11px;
    cursor: pointer;
}
.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
}
.user-node {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s;
}
.user-node.talking {
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}
.user-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
}
.talking-icon {
    opacity: 0;
    transition: opacity 0.2s;
    color: #22c55e;
}
.user-node.talking .talking-icon {
    opacity: 1;
    animation: blink 1s infinite;
}
.user-visualizer-container {
    background: #0f172a;
    border-radius: 6px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.user-visualizer-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}
.user-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.user-controls input[type="range"] {
    flex: 1;
    appearance: none;
    background: #334155;
    height: 4px;
    border-radius: 2px;
    outline: none;
}
.user-controls input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
}
.btn-user-mute {
    padding: 2px 8px;
    font-size: 10px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-user-mute.muted {
    background: #b91c1c;
}
.empty-list-label {
    color: #64748b;
    font-size: 12px;
    text-align: center;
    padding: 15px 0;
}
