.softphone-widget .softphone-widget-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.softphone-widget .softphone-widget-heading__right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.softphone-widget .softphone-widget-heading .softphone-recording-indicator {
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.softphone-widget .softphone-widget-heading .softphone-recording-indicator .fa-circle {
    font-size: 0.7em;
    vertical-align: middle;
    animation: softphone-rec-pulse 1.2s ease-in-out infinite;
}

@keyframes softphone-rec-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.softphone-widget.panel,
.softphone-widget .panel-body {
    width: 100%;
}

.softphone-widget .softphone-wave-row {
    width: 100%;
    margin-bottom: 10px;
}

.softphone-widget .softphone-wave-row small {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.softphone-widget .softphone-wave {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    gap: 2px;
    width: 100%;
    height: 44px;
    padding: 6px 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
    border: 1px solid #dde4ea;
    box-sizing: border-box;
}

.softphone-widget .softphone-bar {
    flex: 1 1 0;
    min-width: 2px;
    max-width: none;
    height: 12%;
    border-radius: 3px 3px 1px 1px;
    transform-origin: bottom center;
    transition: height 0.08s ease-out, opacity 0.08s ease-out;
    will-change: height, opacity;
}

.softphone-widget .softphone-wave--incoming .softphone-bar {
    background: linear-gradient(180deg, #7ec8e3 0%, #3c8dbc 55%, #2a6496 100%);
    box-shadow: 0 0 6px rgba(60, 141, 188, 0.25);
}

.softphone-widget .softphone-wave--outgoing .softphone-bar {
    background: linear-gradient(180deg, #9fd89f 0%, #00a65a 55%, #008d4c 100%);
    box-shadow: 0 0 6px rgba(0, 166, 90, 0.22);
}

.softphone-widget .softphone-controls {
    margin-top: 8px;
}

.softphone-widget .softphone-controls .btn.active {
    background: #f39c12;
    color: #fff;
}

.softphone-widget .softphone-volume {
    width: 100%;
    margin-top: 8px;
}

.softphone-widget .softphone-timer-row {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.softphone-quality-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.softphone-quality-dot.quality-good { background: #00a65a; }
.softphone-quality-dot.quality-warn { background: #f39c12; }
.softphone-quality-dot.quality-bad { background: #dd4b39; }

.softphone-widget .softphone-participants {
    margin-bottom: 10px;
    text-align: left;
}

.softphone-widget .softphone-participants-label {
    display: block;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.softphone-widget .softphone-participants-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.softphone-widget .softphone-participant-chip {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.softphone-widget .softphone-panel-idle {
    padding: 18px 0;
}

.softphone-widget .softphone-panel-idle #softphone-idle-message {
    margin: 0;
    font-size: 13px;
}

.softphone-recording-toast {
    display: none;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.softphone-recording-toast--visible {
    display: block;
    animation: softphone-toast-fade-in 0.15s ease-out;
}

.softphone-recording-toast--success {
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.softphone-recording-toast--error {
    background: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

@keyframes softphone-toast-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
