/* ════════════════════════════════════════════════
   Panel de Voz en Vivo — alineado al design system
   Colores base: bg #00608a, texto #c8d6e5, dark #13161d
   ════════════════════════════════════════════════ */

/* Contenedor: banda fina debajo de las tabs de PM,
   mismo fondo que ct_client_top */
.vc-panel {
    position: absolute;
    top: 30px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px 3px 6px;
    background-color: rgb(0, 80, 116, 0.8);   /* un tono más oscuro que el top para separarlo visualmente */
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    min-height: 28px;
    box-sizing: border-box;
}

/* Icono del micrófono a la izquierda */
.vc-icon {
    font-size: .8rem;
    flex-shrink: 0;
    opacity: .75;
}

/* Texto de estado ("🔴 EN VIVO · 2 usuarios" / "🟡 Esperando...") */
.vc-status {
    font-size: .68rem;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #c8d6e5;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .9;
}

/* Botones: misma estética que ct_client_toolstrip_item* */
.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 3px;
    background-color: #13161d;
    color: #c8d6e5;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.12s ease, box-shadow 0.12s ease;
    padding: 0;
    line-height: 1;
}

.vc-btn:hover {
    background-color: #1e7ea8;
    box-shadow: 0 0 6px rgba(77,184,232,0.5);
}

/* Entrar: verde como los indicadores de conectado */
.vc-btn-join  { color: #2ecc71; }

/* Salir: rojo */
.vc-btn-leave {
    color: #e74c3c;
    transform: rotate(135deg);   /* ícono fa-phone rotado = colgar */
}
.vc-btn-leave:hover { background-color: rgba(220,53,53,0.35); box-shadow: none; }

/* Mic activo / silenciado — color se setea por JS */
/* Escuchar activo / sordo — color se setea por JS */

.vc-userswrap{
    position:absolute;
    top:28px;
    left:0;
    right:0;
    z-index:5;
    border-bottom-right-radius:8px;
    overflow:hidden;
}

.vc-usershead{
    background:rgba(0,80,116,.7);
    color:#c8d6e5;
    font-size:.68rem;
    padding:3px 6px;
    cursor:pointer;
    user-select:none;
    white-space:nowrap;
    border-bottom-right-radius:8px;
    display: none;
}

.vc-usersbox{
    display:none;
    background:rgba(0,80,116,.7);
    max-height:140px;
    overflow-y:auto;
    border-bottom-right-radius:8px;
}

.vc-userrow:last-child{
    border-bottom-right-radius:8px;
}

/* ── Join Warning Dialog ── */
.vc-warn-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vc-warn-fadein 0.2s ease;
}
@keyframes vc-warn-fadein { from { opacity: 0; } to { opacity: 1; } }

.vc-warn-dialog {
    position: relative;
    width: 300px;
    padding: 20px 18px 16px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(16, 20, 30, 0.97);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,184,77,0.35);
    border-top: 2px solid #e8b84d;
    animation: vc-warn-slidein 0.26s cubic-bezier(0.22,1,0.36,1);
}
@keyframes vc-warn-slidein {
    from { transform: translateY(-8px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.vc-warn-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #8898aa; font-size: 11px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: background 0.15s, color 0.15s;
}
.vc-warn-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

.vc-warn-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.vc-warn-icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8860b, #e8b84d);
    box-shadow: 0 0 0 3px rgba(232,184,77,0.18), 0 0 14px rgba(232,184,77,0.35);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    animation: vc-warn-pulse 2.2s ease-in-out infinite;
}
@keyframes vc-warn-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(232,184,77,0.18), 0 0 14px rgba(232,184,77,0.35); }
    50%     { box-shadow: 0 0 0 6px rgba(232,184,77,0.10), 0 0 22px rgba(232,184,77,0.55); }
}

.vc-warn-title {
    margin: 0 0 5px;
    font-size: 13px; font-weight: 700;
    color: #e8b84d; letter-spacing: 0.2px; line-height: 1.2;
}
.vc-warn-body {
    margin: 0;
    font-size: 11.5px; color: #c8d6e5; line-height: 1.55;
}
.vc-warn-body strong { color: #fff; font-weight: 600; }

.vc-warn-actions {
    display: flex; gap: 8px; justify-content: flex-end;
}
.vc-warn-btn {
    padding: 6px 14px; border-radius: 6px; border: none;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s; line-height: 1;
}
.vc-warn-btn-cancel { background: rgba(255,255,255,0.08); color: #8898aa; }
.vc-warn-btn-cancel:hover { background: rgba(255,255,255,0.15); color: #c8d6e5; }
.vc-warn-btn-confirm { background: #2ecc71; color: #13161d; }
.vc-warn-btn-confirm:hover { background: #27ae60; box-shadow: 0 0 8px rgba(46,204,113,0.4); }