/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: #4a9eff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    color: #cccccc;
    font-size: 1.1em;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.users-info {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

/* Estilos específicos para información técnica WebRTC */
.nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.nav-tabs .nav-link.active {
    background: rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
    color: #ffffff;
}

.tab-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 15px 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

/* Indicadores de estado de red */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #17a2b8 !important;
}

/* Estilos para tooltips */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 12px;
    max-width: 250px;
    text-align: left;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(0, 0, 0, 0.9);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(0, 0, 0, 0.9);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(0, 0, 0, 0.9);
}

/* Cursor pointer para elementos con tooltip */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

.users-info h3 {
    color: #4a9eff;
    margin-bottom: 15px;
}

.user-item {
    background: rgb(255 255 255 / 17%);
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #d6d9dc;
}

.user-role {
    background: #4a9eff;
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.user-role.master {
    background: #ff6b6b;
}

.input-group {
    margin: 15px 0;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a9eff;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.input-group input::placeholder {
    color: #888;
}

.btn {
    background: linear-gradient(45deg, #4a9eff, #0066cc);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

/* Estilos específicos para la página de usuario */
.name-section {
    display: flex;
    gap: 10px;
    align-items: end;
}

.name-section input {
    flex: 1;
}

/* Estilos específicos para la página de master */
.logout-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.master-controls {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.master-controls h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4a9eff;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Estilos específicos para la página de login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-container .header h1 {
    font-size: 2.2em;
}

.login-container .input-group {
    margin: 20px 0;
}

.login-container .input-group input {
    padding: 15px;
}

.login-container .btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
}

.login-container .btn:hover {
    box-shadow: 0 8px 20px rgba(74, 158, 255, 0.4);
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #66b3ff;
}

.credentials-hint {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #cccccc;
}

.credentials-hint strong {
    color: #4a9eff;
}

/* Estilos para selectores de dispositivos de audio y video */
.device-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.device-section h4 {
    color: #4a9eff;
    margin-bottom: 15px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.device-row .input-group {
    flex: 1;
    min-width: 250px;
}

.device-selector {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.device-selector:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.device-selector:hover {
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.15);
}

.device-selector option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

.device-selector option:disabled {
    color: #888;
}

.media-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.media-error p {
    margin: 8px 0;
}

.media-error strong {
    color: #ff6b6b;
}

/* Responsive design para dispositivos móviles */
@media (max-width: 768px) {
    .device-row {
        flex-direction: column;
    }

    .device-row .input-group {
        min-width: 100%;
    }

    .device-section {
        padding: 10px;
    }

    .device-section h4 {
        font-size: 1em;
    }
}



/* Estilos para vista previa de video */
.video-preview-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    /* margin: 0 auto; */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-status {
    text-align: center;
    padding: 20px;
}

.video-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.video-status p {
    margin: 0;
    font-size: 1.1rem;
    color: #cccccc;
}

/* Estados del video */
.video-preview-container.loading .video-overlay {
    background: rgba(74, 158, 255, 0.2);
}

.video-preview-container.error .video-overlay {
    background: rgba(255, 107, 107, 0.2);
}

.video-preview-container.error .video-icon {
    color: #ff6b6b;
}

.video-preview-container.error .video-status p {
    color: #ff6b6b;
}

/* Responsive para video */
@media (max-width: 768px) {
    .video-preview-container {
        max-width: 100%;
    }

    .video-icon {
        font-size: 2rem !important;
    }

    .video-status p {
        font-size: 1rem !important;
    }
}

/* Estilos para vumetros stereo con sistema de máscara */
.vumeter-stereo-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.vumeter-channel {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Fondo con gradiente fijo - siempre visible */
.vumeter-bar {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right,
            #00ff00 0%,
            /* Verde */
            #7fff00 25%,
            /* Verde claro */
            #ffff00 50%,
            /* Amarillo */
            #ff7f00 75%,
            /* Naranja */
            #ff0000 100%
            /* Rojo */
        );
    border-radius: 5px;
}

/* Máscara negra que se recorta según el nivel */
.vumeter-level {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    /* Sin border-radius para evitar bordes curvados en la máscara */
    transition: width 0.1s ease-out;
    z-index: 2;
}

/* Botones de test de audio */
.audio-test-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 100;
    position: relative;
    min-height: 38px;
}

.audio-test-btn:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.5);
    color: #ffffff;
    transform: scale(1.05);
}

.audio-test-btn:active,
.audio-test-btn.playing {
    background: rgba(74, 158, 255, 0.4);
    border-color: rgba(74, 158, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
}

.audio-test-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: auto !important; /* Mantener clickeable para debug */
}

.audio-test-btn.playing {
    animation: audioPlaying 1s ease-in-out infinite alternate;
}

@keyframes audioPlaying {
    0% {
        background: rgba(74, 158, 255, 0.4);
        box-shadow: 0 0 10px rgba(74, 158, 255, 0.3);
    }
    100% {
        background: rgba(74, 158, 255, 0.6);
        box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
    }
}

/* @keyframes peakBlink {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
    }

    50% {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 6px rgba(255, 255, 255, 1);
    }
} */

/* Estilos responsivos para vumetros stereo */
@media (max-width: 768px) {
    .vumeter-channel {
        height: 8px;
    }

    .vumeter-stereo-container {
        gap: 1px;
    }

    .d-flex.align-items-center span {
        font-size: 0.7rem !important;
        min-width: 50px !important;
    }
}
/* Estilos compactos para usuarios conectados */
.user-item-compact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.user-item-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 158, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-role.master {
    background: #dc3545;
    color: white;
}

.user-role.user {
    background: #007bff;
    color: white;
}

/* Dispositivos compactos */
.user-devices-compact {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    align-items: center;
}

.device-tag {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.25);
    border-radius: 6px;
    padding: 2px 5px;
    font-size: 0.65rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
    max-width: 160px;
}

.device-icon {
    color: #28a745;
    font-weight: 600;
    flex-shrink: 0;
}

.device-name {
    color: #ffffff;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.user-devices-empty {
    color: #6c757d;
    font-size: 0.7rem;
    font-style: italic;
}

/* Notificaciones compactas */
.device-change-notification {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive para diseño compacto */
@media (max-width: 768px) {
    .user-item-compact {
        padding: 6px 8px;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .device-tag {
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .device-change-notification {
        max-width: 280px !important;
        right: 10px !important;
        top: 10px !important;
        font-size: 0.8rem;
    }
    
    .user-devices-compact {
        gap: 2px;
    }
}/* Es
tilos para notificaciones de conexión */
.connection-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
}

.connection-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.connection-notification.success {
    background: rgba(40, 167, 69, 0.9);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: white;
}

.connection-notification.error {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
}

.connection-notification.warning {
    background: rgba(255, 193, 7, 0.9);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #212529;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.notification-message {
    font-weight: 500;
    line-height: 1.4;
}

/* Estilos para controles de master */
.control-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h5 {
    color: #4a9eff;
    margin-bottom: 15px;
}

.control-description {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .connection-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .connection-notification.show {
        transform: translateY(0);
    }
}/* Esti
los específicos para la página de desconectado */
.disconnected-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.disconnected-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Texto legible en página de desconectado */
.disconnected-card #mainDescription {
    color: #ffffff !important;
}

.disconnected-card .info-section ul li {
    color: #ffffff !important;
}

.disconnected-icon {
    animation: pulse-disconnect 2s infinite;
}

@keyframes pulse-disconnect {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.disconnected-actions .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.disconnected-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.info-section ul li:last-child {
    border-bottom: none;
}

/* Responsive para página de desconectado */
@media (max-width: 768px) {
    .disconnected-card .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .disconnected-icon i {
        font-size: 3rem !important;
    }
    
    .disconnected-actions .col-12 {
        margin-bottom: 0.5rem;
    }
}

/* Animación para botones de acción */
.disconnected-actions .btn-primary {
    background: linear-gradient(45deg, #4a9eff, #0066cc);
    border: none;
}

.disconnected-actions .btn-primary:hover {
    background: linear-gradient(45deg, #0066cc, #004499);
}

.disconnected-actions .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.disconnected-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
/*
 ===== ESTILOS WEBRTC ===== */

/* WebRTC Status Styles */
.webrtc-status-container {
    margin-bottom: 1rem;
}

.webrtc-status {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.status-disconnected {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
}

.status-ready {
    background-color: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.status-connecting {
    background-color: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    color: #ffc107;
    animation: pulse 1.5s infinite;
}

.status-connected {
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    color: #28a745;
}

.status-failed {
    background-color: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Remote Video Window Styles */
.remote-video-window {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    max-width: 90vw;
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.remote-video-container {
    position: relative;
    width: 100%;
    height: 225px; /* 16:9 aspect ratio for 400px width */
    background-color: #000;
    border-radius: 0.25rem;
    overflow: hidden;
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

.remote-video-container .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.remote-video-container .video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.remote-video-container .video-status {
    text-align: center;
}

.remote-video-container .video-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.remote-video-container .video-status p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .remote-video-window {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
    
    .remote-video-container {
        height: 200px;
    }
}

/* Hidden audio elements */
#remoteAudio1,
#remoteAudio2 {
    display: none;
}

/* Ready button states */
#readyButton {
    transition: all 0.3s ease;
    min-width: 150px;
}

#readyButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* WebRTC connection indicators */
.webrtc-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.webrtc-indicator.connected {
    background-color: #28a745;
}

.webrtc-indicator.connecting {
    background-color: #ffc107;
}

.webrtc-indicator.disconnected {
    background-color: #dc3545;
    animation: none;
}

.colorClaro{
    color: rgb(106,255,251,0.6) !important;
}

.infoVideo{
    /* color: rgb(152,248,124,0.9) !important; */
    color: rgb(50 252 242 / 90%) !important;
    /* font-size: 0.75rem;
    margin-top: 5px;
    margin-bottom: 5px; */
    border-radius: 5px;
    padding: 4px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* transition: all 0.3s ease; */
}

/* ===== MEJORA DE CALIDAD DE VIDEO ===== */
.video-enhancement-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
}

.video-enhancement-slider {
    margin-bottom: 15px;
}

.video-enhancement-slider label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #e0e0e0 !important;
    font-weight: 500;
}

.video-enhancement-slider .form-range {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
}

.video-enhancement-slider .form-range::-webkit-slider-thumb {
    background: linear-gradient(45deg, #4a9eff, #00d4ff);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 18px;
    height: 18px;
}

.video-enhancement-slider .form-range::-moz-range-thumb {
    background: linear-gradient(45deg, #4a9eff, #00d4ff);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 18px;
    height: 18px;
}

.video-enhancement-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.video-enhancement-presets .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.video-enhancement-presets .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mejoras en video con transiciones suaves */
video {
    transition: filter 0.3s ease-in-out !important;
}

/* Indicadores visuales para valores extremos */
.form-range[value="0"], .form-range[value="200"] {
    background: rgba(255, 99, 71, 0.2) !important;
}

/* Estilos para notificaciones de video */
.video-enhancement-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
}

/* Mejorar visibilidad de labels en tema oscuro */
.card .form-label {
    color: #e0e0e0 !important;
    font-weight: 500;
}

.card h6 {
    color: #ffffff !important;
}

.card small {
    color: #d0d0d0 !important;
}

/* Valores de sliders más visibles */
.text-info {
    color: #4a9eff !important;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}