/* NT VoIP Softphone Widget */
#softphone-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#softphone-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a365d;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}
#softphone-toggle:hover { transform: scale(1.1); background: #2c5282; }
#softphone-toggle.active { background: #c53030; }
#softphone-toggle.ringing { animation: pulse-ring 0.5s infinite; background: #38a169; }
@keyframes pulse-ring { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
#softphone-panel {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
#softphone-panel.open { display: block; }
.sp-header {
    background: #1a365d;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sp-header-title { font-weight: 600; font-size: 14px; }
.sp-status { font-size: 11px; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,0.2); }
.sp-status.connected { background: #38a169; }
.sp-status.error { background: #c53030; }
.sp-display {
    background: #f7fafc;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    min-height: 60px;
}
.sp-number { font-size: 24px; font-weight: 600; color: #1a365d; letter-spacing: 1px; }
.sp-call-status { font-size: 12px; color: #718096; margin-top: 4px; }
.sp-dialpad { padding: 12px; }
.sp-dialpad-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.sp-key {
    width: 60px;
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 20px;
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
}
.sp-key:hover { background: #edf2f7; }
.sp-key:active { background: #e2e8f0; }
.sp-key-sub { display: block; font-size: 9px; color: #a0aec0; }
.sp-actions { padding: 12px; display: flex; gap: 8px; }
.sp-btn { flex: 1; padding: 14px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.sp-btn-call { background: #38a169; color: white; }
.sp-btn-call:hover { background: #2f855a; }
.sp-btn-hangup { background: #c53030; color: white; }
.sp-btn-hangup:hover { background: #9b2c2c; }
.sp-call-controls { display: none; padding: 12px; gap: 8px; }
.sp-call-controls.active { display: flex; }
.sp-ctrl-btn { flex: 1; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; font-size: 12px; cursor: pointer; }
.sp-ctrl-btn.active { background: #fed7d7; border-color: #c53030; color: #c53030; }
.sp-ctrl-btn:hover { background: #edf2f7; }
#softphone-audio { display: none; }