/* ═══════════════════════════════════════════════════════════════
   LIVE CALL VIEW - Real-time coaching
   ═══════════════════════════════════════════════════════════════ */

.live-call-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    flex: 1;
    overflow: hidden;
}

.live-call-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-call-sidebar {
    width: 360px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .live-call-container {
        flex-direction: column;
    }
    .live-call-sidebar {
        width: 100%;
    }
}

/* Live Call Header */
.live-call-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.call-timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.end-call-button {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--danger);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.end-call-button:hover {
    background: #dc2626;
    transform: scale(1.02);
}

/* Conversation Area */
.conversation-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
}

.conversation-start {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message-bubble.user {
    align-self: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.message-bubble.prospect {
    align-self: flex-end;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-bottom-right-radius: 4px;
}

.message-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.message-bubble.user .message-label {
    color: var(--accent);
}

.message-bubble.prospect .message-label {
    color: var(--text-muted);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-radius: 16px;
    max-width: 80px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* AI Coach Panel */
.ai-coach-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ai-coach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ai-coach-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-coach-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ai-coach-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ai-coach-info span {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-listening {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-listening span {
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    animation: soundWave 0.5s infinite alternate;
}

.ai-listening span:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.ai-listening span:nth-child(3) { animation-delay: 0.2s; height: 12px; }
.ai-listening span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.ai-listening span:nth-child(5) { animation-delay: 0.4s; height: 14px; }

@keyframes soundWave {
    from { transform: scaleY(0.5); }
    to { transform: scaleY(1); }
}

.ai-coach-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coaching-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid var(--accent);
}

.coaching-card.alert {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.coaching-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.coaching-card-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
}

.coaching-card.alert .coaching-card-type {
    color: var(--warning);
}

.coaching-card-time {
    font-size: 11px;
    color: var(--text-muted);
}

.coaching-card h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coaching-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.coaching-suggestion {
    font-style: italic;
    color: var(--accent);
    margin-top: 10px;
    padding: 10px;
    background: var(--accent-subtle);
    border-radius: 8px;
    font-size: 12px;
}

.coaching-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.coaching-tag {
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.add-note-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: auto;
}

.add-note-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

/* Practice Persona Panel */
.practice-persona-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.practice-tips-panel {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

.practice-tips-panel h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.practice-tips-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.practice-tips-panel li {
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.practice-tips-panel li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

