/* Dialpad Minimalista - CSS Responsivo */

/* Reset y base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor principal del dialpad */
#dialpad-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 320px;
    min-height: 610px;
    position: relative;
    transition: all 0.3s ease;
}

/* Estado de conexión - siempre arriba */
#connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    order: -2; /* Colocar antes que todo */
}

/* Durante llamada - ocultar dialpad y mostrar líneas activas */
#dialpad-container.calling #dialpad {
    display: none;
}

#dialpad-container.calling #lines-list {
    display: block !important;
    margin-bottom: 10px;
    order: 0; /* Misma posición que phone-display */
}

/* Mostrar dialpad cuando se active el keypad */
#dialpad-container.calling.show-keypad #dialpad {
    display: block;
    order: 2; /* Mostrar después de las líneas */
    margin-bottom: 10px; /* Reducir margen inferior para ajuste */
}

#dialpad-container.calling.show-keypad #lines-list {
    display: none;
}

/* Dialpad fullscreen durante llamadas - botones en forma de píldora horizontal */
#dialpad-container.calling.show-keypad .dial-btn {
    width: 80px;
    height: 45px;
    border-radius: 22px;
}

#dialpad-container.calling.show-keypad .dial-btn .digit {
    font-size: 18px;
}

#dialpad-container.calling.show-keypad .dial-btn .letters {
    font-size: 7px;
    margin-top: 1px;
}

#dialpad-container.calling.show-keypad .dialpad-row {
    margin-bottom: 8px;
}

/* Visualización del margin-bottom (DEBUG) */
#lines-list::after {
    content: "";
    display: block;
    height: 10px;
    background-color: transparent;
    opacity: 0.3;
    margin-top: 0;
}

#close-dialpad-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    padding-left: 0; /* Alinear con el botón 1 del dialpad */
}

#close-dialpad-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

#close-dialpad-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: translateY(-1px);
}

/* Campo DTMF rectangular que se extiende hasta el margen derecho */
#dtmf-display {
    flex: 1;
    height: 35px;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    padding: 0 10px;
}

#dtmf-display:focus {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    border-color: #667eea !important;
}

/* Tema oscuro para campo DTMF rectangular */
@media (prefers-color-scheme: dark) {
    #dtmf-display {
        color: #ecf0f1 !important;
        background: rgba(52, 58, 64, 0.9) !important;
        border-color: #495057 !important;
    }
    
    #dtmf-display:focus {
        background: rgba(52, 58, 64, 1) !important;
        border-color: #667eea !important;
    }
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.status-indicator.online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.status-indicator.offline {
    background-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Botón de configuración */
/* Audio Level Indicators - Top Right */
.audio-indicators {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-indicators.active {
    opacity: 1;
}

.audio-meter-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 6px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.audio-meter-container i {
    font-size: 12px;
    color: #666;
    width: 14px;
    text-align: center;
}

.audio-meter-bar {
    width: 50px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.audio-meter-level {
    height: 100%;
    width: 0%;
    border-radius: 0;
    transition: width 0.1s linear;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 50%, #ffc107 75%, #ff5722 100%);
}

.settings-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.settings-button:hover {
    background: rgba(255, 255, 255, 1);
    color: #2196F3;
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.3);
    transform: rotate(90deg);
}

/* Display del teléfono */
#phone-display {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    height: auto;
    min-height: 80px;
}

#phone-screen {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 50px 10px 20px;
    transition: all 0.3s ease;
}

/* Mostrar lines-list siempre arriba del dialpad */
#lines-list {
    display: block;
    margin-bottom: 20px;
    order: 3; /* Después del dialpad normalmente */
}

/* Durante llamada activa - mantener phone-display oculto */
#dialpad-container.calling #phone-display {
    display: none;
}

/* Estilos para líneas con timer - fuente negra para mejor visibilidad */
.line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #333; /* Fuente negra por defecto */
    height: 60px;
}

.line-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.line-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* FORZAR colores negros para elementos de línea por defecto */
.line-item .line-number {
    font-size: 16px;
    font-weight: 500;
    color: #333 !important; /* Negro forzado */
    margin-bottom: 2px;
}

.line-item .line-status {
    font-size: 12px;
    color: #666 !important; /* Gris oscuro forzado */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.line-item .line-timer {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #007bff !important; /* Azul forzado */
    margin-right: 10px;
}

/* Regla adicional para sobrescribir cualquier herencia */
#lines-list .line-item:not(.active):not(.on-hold):not(.connecting) .line-number,
#lines-list .line-item:not(.active):not(.on-hold):not(.connecting) .line-status,
#lines-list .line-item:not(.active):not(.on-hold):not(.connecting) .line-timer {
    color: #333 !important;
}

#lines-list .line-item:not(.active):not(.on-hold):not(.connecting) .line-timer {
    color: #007bff !important;
}

.line-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.line-activate-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #28a745;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.line-activate-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.line-activate-btn:active {
    transform: scale(0.95);
}

.line-hangup-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.line-hangup-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.line-hangup-btn:active {
    transform: scale(0.95);
}

.line-mute-ring-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #ff9800;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
}

.line-mute-ring-btn:hover {
    background: #f57c00;
    transform: scale(1.05);
}

.line-mute-ring-btn:active {
    transform: scale(0.95);
}

.line-mute-ring-btn.muted {
    background: #9e9e9e;
}

.line-mute-ring-btn.muted:hover {
    background: #757575;
}


/* Estados de línea con fondos claros y texto negro */
.line-item.active {
    background: rgba(76, 175, 80, 0.1); /* Fondo verde muy claro */
    color: #333; /* Texto negro */
    border-left: 4px solid #4caf50; /* Borde verde para indicar estado activo */
}

.line-item.active .line-number,
.line-item.active .line-status,
.line-item.active .line-timer {
    color: #333 !important; /* Negro para mejor contraste */
}

.line-item.active .line-timer {
    color: #2e7d32 !important; /* Verde oscuro para el timer */
}

.line-item.active .line-activate-btn {
    background: #4caf50;
    color: white !important;
}

.line-item.on-hold {
    background: rgba(255, 193, 7, 0.1); /* Fondo amarillo muy claro */
    color: #333; /* Texto negro */
    border-left: 4px solid #ffc107; /* Borde amarillo para indicar espera */
}

.line-item.on-hold .line-number,
.line-item.on-hold .line-status,
.line-item.on-hold .line-timer {
    color: #333 !important; /* Negro para mejor contraste */
}

.line-item.on-hold .line-timer {
    color: #f57c00 !important; /* Naranja oscuro para el timer */
}

.line-item.on-hold .line-activate-btn {
    background: #ffc107;
    color: #333 !important;
}

.line-item.connecting {
    background: rgba(33, 150, 243, 0.1); /* Fondo azul muy claro */
    color: #333; /* Texto negro para contraste */
    border-left: 4px solid #2196f3; /* Borde azul para indicar estado */
}

.line-item.connecting .line-number,
.line-item.connecting .line-status,
.line-item.connecting .line-timer {
    color: #333 !important; /* Negro para mejor contraste */
}

.line-item.connecting .line-timer {
    color: #1976d2 !important; /* Azul más oscuro para el timer */
}

/* Estilo para llamada entrante (ringing) */
.line-item.incoming-ringing {
    background: rgba(33, 150, 243, 0.15); /* Fondo azul claro */
    color: #333;
    border-left: 4px solid #2196F3;
    animation: blink-border 1s ease-in-out infinite; /* Efecto de parpadeo en el borde */
}

.line-item.incoming-ringing .line-number,
.line-item.incoming-ringing .line-status,
.line-item.incoming-ringing .line-timer {
    color: #333 !important;
}

.line-item.incoming-ringing .line-status {
    color: #2196F3 !important;
    font-weight: 600;
    animation: pulse-text 1s ease-in-out infinite;
}

/* Ocultar el contador de tiempo y el icono del teléfono cuando está repicando */
.line-item.incoming-ringing .line-timer {
    display: none;
}

.line-item.incoming-ringing .line-number i.fa-phone {
    display: none;
}

/* Animación de parpadeo para el borde - AZUL */
@keyframes blink-border {
    0%, 100% {
        border-left-color: #2196F3;
        box-shadow: 0 0 0 rgba(33, 150, 243, 0.4);
    }
    50% {
        border-left-color: #42A5F5;
        box-shadow: -3px 0 10px rgba(33, 150, 243, 0.6);
    }
}

/* Animación de pulso para el texto */
@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Animación de pulso para el ícono del teléfono */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Para líneas sin estado específico (disponible) - FORZAR color negro */
.line-item.available .line-number,
.line-item.available .line-status,
.line-item.available .line-timer {
    color: #333 !important;
}

.line-item.available .line-activate-btn {
    color: white !important;
}

/* Hacer que el dialpad-container use flexbox para ordenar elementos */
#dialpad-container {
    display: flex;
    flex-direction: column;
}

/* Responsive para líneas */
@media (max-width: 480px) {
    .line-item {
        padding: 10px 12px;
        margin-bottom: 6px;
    }
    
    .line-number {
        font-size: 14px;
    }
    
    .line-timer {
        font-size: 12px;
    }
    
    .line-activate-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

#call-info-line {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

#call-number {
    font-weight: 500;
    color: #333;
}

#call-timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #007bff;
}

#input-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dialText {
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    outline: none;
    padding: 0;
    transition: all 0.3s ease;
}

#dialText:focus {
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.clear-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Durante llamada - alinear botón clear abajo */
.calling .clear-button {
    top: auto;
    bottom: 0px;
    transform: none;
}

.clear-button.visible {
    opacity: 1;
}

.clear-button:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.delete-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
}

.delete-button.visible {
    opacity: 1;
}

.delete-button:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* Dialpad */
#dialpad {
    margin-bottom: 30px;
}

.dialpad-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dial-btn {
    width: 70px;
    height: 70px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.dial-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dial-btn .digit {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    line-height: 1;
}

.dial-btn .letters {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    font-weight: 300;
}

/* Controles de llamada */
#call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#in-call-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.call-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.hangup-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
    transition: all 0.3s ease;
}

.hangup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.control-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transform: translateY(-1px);
}

.control-button.active {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

#keypad-btn.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.control-button.muted {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.control-button.on-hold {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

/* Estado de llamada */
#call-status {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

#call-number {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

#call-duration {
    font-size: 14px;
    color: #666;
    font-family: 'Courier New', monospace;
}

/* Modal de configuración */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #1a1a1a;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    position: relative;
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 20px 30px 30px 30px;
    color: white;
}

.modal-body * {
    color: white;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    color: #000 !important;
}

.settings-section {
    margin-bottom: 25px;
}

.settings-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #000 !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #000 !important;
}

.settings-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.save-btn,
.test-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.test-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.test-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Call Controls Mejorados */
.call-controls-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.hangup-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.hangup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.5);
}

/* Forzar fondo claro en modal de configuración */
#settings-modal .modal-content {
    background: #ffffff !important;
    color: #333333 !important;
}

#settings-modal .modal-header h3 {
    color: white !important;
}

#settings-modal .settings-section h4 {
    color: #333333 !important;
}

#settings-modal .form-group label {
    color: #333333 !important;
}

/* Forzar color de iconos en botones */
#in-call-controls .control-button i {
    color: #333333 !important;
}

#in-call-controls .hangup-button i,
#call-controls .call-button i {
    color: #ffffff !important;
}

.control-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #333333 !important;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    flex: 0 0 auto;
}

.control-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

/* Modales */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.transfer-input {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transition: all 0.3s ease;
}

.transfer-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.transfer-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.transfer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#conference-controls,
#attended-transfer-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#conference-controls button,
#attended-transfer-controls button {
    width: 100%;
}

/* Transfer and Conference Status */
#transfer-status,
#conference-status {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: 2px solid rgba(52, 152, 219, 0.4);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

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

.modal-btn i {
    font-size: 16px;
}

.modal-btn.cancel-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.modal-btn.cancel-btn:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* Botón especial para unir conferencia */
#join-conference-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
    font-size: 16px;
    padding: 16px 24px;
}

#join-conference-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
    transform: translateY(-3px) scale(1.02);
}

#join-conference-btn i {
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive para controles */
@media (max-width: 480px) {
    .call-controls-row {
        gap: 8px;
    }
    
    .hangup-button {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
    
    .control-button {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .transfer-buttons {
        gap: 8px;
    }
    
    .modal-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Dialpad píldora durante llamadas en móvil para 610px */
    #dialpad-container.calling.show-keypad .dial-btn {
        width: 70px;
        height: 40px;
        border-radius: 20px;
    }
    
    #dialpad-container.calling.show-keypad .dial-btn .digit {
        font-size: 16px;
    }
    
    #dialpad-container.calling.show-keypad .dial-btn .letters {
        font-size: 6px;
    }
    
    #dialpad-container.calling.show-keypad .dialpad-row {
        margin-bottom: 6px;
    }
}

    body {
        padding: 10px;
    }
    
    #dialpad-container {
        padding: 20px;
        max-width: 320px;
        min-height: 610px;
    }
    
    .dial-btn {
        width: 60px;
        height: 60px;
    }
    
    .dial-btn .digit {
        font-size: 20px;
    }
    
    .dial-btn .letters {
        font-size: 9px;
    }
    
    #phone-screen {
        height: 80px;
        padding: 8px 50px 8px 15px;
    }
    
    .calling #phone-screen {
        padding-bottom: 2px;
    }
    
    .calling .clear-button {
        bottom: 0px;
    }
    
    #call-info-line {
        font-size: 11px;
        height: 18px;
        margin-bottom: 4px;
    }
    
    #dialText {
        font-size: 18px;
    }
    
    .call-button,
    .hangup-button {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
    
    .hangup-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .control-button {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    #in-call-controls {
        gap: 10px;
    }
    
    /* Modal responsive */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 320px;
    }
    
    .modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px 20px 20px;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .save-btn,
    .test-btn {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .dial-btn {
        width: 55px;
        height: 55px;
    }
    
    .dial-btn .digit {
        font-size: 18px;
    }
    
    .dialpad-row {
        margin-bottom: 12px;
    }
    
    #call-controls {
        gap: 15px;
    }
    
    /* Dialpad píldora durante llamadas en pantallas pequeñas para 610px */
    #dialpad-container.calling.show-keypad .dial-btn {
        width: 65px;
        height: 35px;
        border-radius: 18px;
    }
    
    #dialpad-container.calling.show-keypad .dial-btn .digit {
        font-size: 14px;
    }
    
    #dialpad-container.calling.show-keypad .dial-btn .letters {
        font-size: 5px;
    }
    
    #dialpad-container.calling.show-keypad .dialpad-row {
        margin-bottom: 5px;
    }
}

/* Pantalla de llamada entrante */
#incoming-call-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}

.incoming-call-info {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

#incoming-caller-name {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 10px;
}

#incoming-caller-number {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
}

.incoming-call-controls {
    display: flex;
    gap: 60px;
    align-items: center;
}

.answer-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
}

.answer-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.reject-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
    transition: all 0.3s ease;
}

.reject-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.5);
}

/* Responsive para pantalla de llamada entrante */
@media (max-width: 480px) {
    #incoming-caller-name {
        font-size: 20px;
    }
    
    #incoming-caller-number {
        font-size: 28px;
    }
    
    .incoming-call-controls {
        gap: 40px;
    }
    
    .answer-button,
    .reject-button {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

/* Loading animation */
.loading {
    background-color: #FFFFFF;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

.loading span {
    color: #667eea;
    font-size: 42px;
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    #dialpad-container {
        background: rgba(44, 62, 80, 0.95);
        color: #ecf0f1;
    }
    
    #connection-status {
        color: #bdc3c7;
    }
    
    .settings-button {
        color: #bdc3c7;
    }
    
    .settings-button:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
    }
    
    #phone-screen {
        background: rgba(255, 255, 255, 0.1);
        color: #ecf0f1;
    }
    
    #phone-screen:focus-within {
        background: rgba(255, 255, 255, 0.15);
    }
    
    #call-number {
        color: #ecf0f1;
    }
    
    #call-timer {
        color: #3498db;
    }
    
    #dialText {
        color: #ecf0f1;
    }
    
    .dial-btn {
        background: rgba(52, 73, 94, 0.8);
        color: #ecf0f1;
    }
    
    .dial-btn:hover {
        background: rgba(52, 73, 94, 0.95);
    }
    
    .dial-btn .digit {
        color: #ecf0f1;
    }
    
    .dial-btn .letters {
        color: #bdc3c7;
    }
    
    .control-button {
        background: rgba(52, 73, 94, 0.8);
        color: #bdc3c7;
    }
    
    .control-button:hover {
        background: rgba(52, 73, 94, 0.95);
        color: #ecf0f1;
    }
    
    #call-status {
        background: rgba(255, 255, 255, 0.1);
    }
    
    #call-number {
        color: #ecf0f1;
    }
    
    #call-duration {
        color: #bdc3c7;
    }
    
    .modal-content {
        background: var(--bg-color);
        color: var(--text-color);
    }
    
    .modal-header {
        border-bottom-color: var(--border-color);
    }
    
    .modal-header h3 {
        color: white;
    }
    
    .close-btn {
        color: white;
    }
    
    .close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    .settings-section h4 {
        color: var(--text-color);
    }
    
    .form-group label {
        color: #bdc3c7;
    }
    
    .form-group input,
    .form-group select {
        background: rgba(52, 73, 94, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ecf0f1;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: #667eea;
        background: rgba(52, 73, 94, 0.95);
    }
    
    .test-btn {
        background: rgba(255, 255, 255, 0.1);
        color: #bdc3c7;
    }
    
    .test-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ecf0f1;
    }
    
    .loading {
        background-color: #2c3e50;
    }
    
    .loading span {
        color: #667eea;
    }
    
    #incoming-call-screen {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .incoming-call-info {
        color: #ecf0f1;
    }
}

/* Active Lines List */
#lines-list {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 226px;
    overflow-y: auto;
}

.line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.line-item:last-child {
    margin-bottom: 0;
}

.line-item.active {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
}

.line-item.on-hold {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
}

.line-item.connecting {
    background: rgba(33, 150, 243, 0.1);
    border-left-color: #2196F3;
}

.line-item.available {
    background: rgba(158, 158, 158, 0.1);
    border-left-color: #9e9e9e;
}

.line-info {
    flex: 1;
}

.line-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.line-number {
    color: #666;
    font-size: 13px;
    margin-bottom: 2px;
}

.line-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.line-item.active .line-status {
    color: #4CAF50;
}

.line-item.on-hold .line-status {
    color: #ff9800;
}

.line-item.connecting .line-status {
    color: #2196F3;
}

.line-item.available .line-status {
    color: #9e9e9e;
}

.line-controls {
    display: flex;
    gap: 8px;
}

.line-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.switch-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.switch-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-1px);
}

.hangup-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.hangup-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
    transform: translateY(-1px);
}

/* Call Waiting Dialog */
#call-waiting-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

#call-waiting-dialog .modal-content {
    background: #ffffff;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

#call-waiting-dialog .modal-header {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

#call-waiting-dialog .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#call-waiting-dialog .modal-body {
    padding: 20px;
    text-align: center;
}

.waiting-caller-info {
    margin-bottom: 30px;
}

.waiting-caller-info .caller-name {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.waiting-caller-info .caller-number {
    font-size: 24px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 20px;
}

.waiting-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.waiting-controls .modal-btn {
    flex: 1;
    max-width: 120px;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.accept-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.accept-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.reject-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.reject-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Responsive para múltiples líneas */
@media (max-width: 480px) {
    #lines-list {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .line-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .line-name {
        font-size: 13px;
    }
    
    .line-number {
        font-size: 12px;
    }
    
    .line-status {
        font-size: 10px;
    }
    
    .line-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .waiting-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .waiting-controls .modal-btn {
        max-width: none;
    }
}

/* Tema oscuro para líneas múltiples */
@media (prefers-color-scheme: dark) {
    #lines-list {
        background: rgba(52, 73, 94, 0.9);
    }
    
    .line-name {
        color: #ecf0f1;
    }
    
    .line-number {
        color: #bdc3c7;
    }
    
    .waiting-caller-info .caller-name {
        color: #ecf0f1;
    }
    
    #call-waiting-dialog .modal-content {
        background: #2c3e50;
    }
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.calling .call-button {
    animation: pulse 1s infinite;
}

/* 
========================================
FEATURE: Window Controls Styles (v2.2.0)
Deshabilitado temporalmente - Descomentar para habilitar
========================================

.window-control-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.window-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.window-control-btn:active {
    transform: scale(0.95);
}

#dialpad-container.hidden {
    display: none !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#restore-dialpad-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

========================================
*/

/* Notification Toast System */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification-toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.notification-toast.error {
    border-left-color: #ff4444;
}

.notification-toast.success {
    border-left-color: #00C851;
}

.notification-toast.warning {
    border-left-color: #ffbb33;
}

.notification-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-toast.error .notification-toast-icon {
    color: #ff4444;
}

.notification-toast.success .notification-toast-icon {
    color: #00C851;
}

.notification-toast.warning .notification-toast-icon {
    color: #ffbb33;
}

.notification-toast-content {
    flex: 1;
}

.notification-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.notification-toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-toast-close:hover {
    background: #f0f0f0;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast.hiding {
    animation: slideOut 0.3s ease-in forwards;
}


/* Conference Banner */
.conference-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    }
}

.conference-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conference-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}

.conference-header i {
    font-size: 16px;
}

.conference-label {
    letter-spacing: 0.5px;
}

.conference-participants {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 24px;
}

.participant {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
}

.participant i {
    font-size: 12px;
    opacity: 0.8;
    width: 14px;
}

.participant span {
    font-weight: 500;
}

.conference-end-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.conference-end-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Line item states */
.line-item.in-conference {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
}

.line-item.in-conference .line-status {
    color: #667eea;
    font-weight: 600;
}

