/* ═══════════════════════════════════════════════════════════════
   RESULTS DASHBOARD - Post-call analysis
   ═══════════════════════════════════════════════════════════════ */

.results-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Success Banner */
.success-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.success-banner .icon {
    font-size: 16px;
}

/* Results Title */
.results-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.results-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.results-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Score and Recording Row */
.results-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .results-top-row {
        grid-template-columns: 1fr;
    }
}

/* Score Card */
.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-card h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--score-percent) * 1%), var(--bg-elevated) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--bg-card);
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value .number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-value .total {
    font-size: 14px;
    color: var(--text-muted);
}

.score-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-subtle);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.score-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Recording Card */
.recording-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.recording-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.recording-header h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.recording-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.play-button {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    color: white;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Waveform Visualization */
.waveform-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 20px 0;
}

.waveform-bar {
    flex: 1;
    min-width: 4px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
    transition: height 0.2s;
}

.waveform-bar:hover {
    opacity: 1;
}

.recording-timeline {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.recording-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.budget { background: var(--accent); }
.legend-dot.competitor { background: var(--warning); }
.legend-dot.interruption { background: var(--danger); }

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 800px) {
    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.metric-value .unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.metric-change.positive { color: var(--accent); }
.metric-change.negative { color: var(--danger); }
.metric-change.neutral { color: var(--text-muted); }

/* Bottom Row - Transcript and Coach's Corner */
.results-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 800px) {
    .results-bottom-row {
        grid-template-columns: 1fr;
    }
}

.transcript-card, .coaching-corner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-header-row .icon {
    font-size: 18px;
}

.card-header-row h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.transcript-snippet {
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.transcript-speaker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.speaker-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.speaker-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.transcript-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Action Buttons Row */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.action-btn.secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.action-btn.primary {
    background: var(--accent);
    border: none;
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   LEGACY SALES LAB - Training Dashboard Layout (kept for compatibility)
   ═══════════════════════════════════════════════════════════════ */

/* Compact Setup Bar - Always visible at top */
.setup-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.setup-bar.minimized {
    padding: 12px 16px;
    border-radius: 12px;
}

.setup-bar.minimized .setup-inputs,
.setup-bar.minimized .setup-context {
    display: none;
}

.setup-bar.minimized .setup-header {
    margin-bottom: 0;
}

.setup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.setup-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setup-title .icon {
    font-size: 18px;
}

.setup-title h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.setup-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.setup-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.setup-status.ready .dot {
    background: var(--success);
}

.setup-status.calling .dot {
    background: var(--warning);
    animation: pulse 1s infinite;
}

.setup-status.connected .dot {
    background: var(--success);
    animation: pulse 1s infinite;
}

.setup-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 500px) {
    .setup-inputs {
        grid-template-columns: 1fr;
    }
}

.setup-input {
    position: relative;
}

.setup-input label {
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.setup-input input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.setup-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.setup-input input::placeholder {
    color: var(--text-muted);
}

.setup-context {
    margin-bottom: 12px;
}

.setup-context textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    resize: none;
    height: 50px;
    transition: all 0.2s;
}

.setup-context textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.setup-context textarea::placeholder {
    color: var(--text-muted);
}

.setup-actions {
    display: flex;
    gap: 10px;
}

.setup-actions .call-btn {
    flex: 1;
}

/* Lab Dashboard - Main Content Area */
.lab-dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-top: 12px;
}

/* Empty State - Before Call */
.lab-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow-y: auto;
}

.lab-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.lab-empty-state h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lab-empty-state > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
}

.how-it-works .step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    text-align: left;
    transition: all 0.2s;
}

.how-it-works .step:hover {
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.how-it-works .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-it-works .step-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Live Call State */
.lab-live {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.lab-live.hidden {
    display: none;
}

.live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    flex-shrink: 0;
}

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

.live-header .live-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-header .call-timer {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--success);
}

.live-header .end-call-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.live-header .end-call-btn:hover {
    background: #dc2626;
}

.lab-transcript {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lab-transcript-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* Inline Results Dashboard - After Call */
.lab-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.lab-results.hidden {
    display: none;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    flex-shrink: 0;
}

.results-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-header .new-call-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.results-header .new-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.results-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Call View Container */
#callView {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Critical for flex children to scroll properly */
    overflow-y: auto;
}

/* Practice View Container */
#practiceView {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Critical for flex children to scroll properly */
    overflow-y: auto;
    padding: 24px 32px;
}

/* Split Panel Container - Shows during call */
.split-panels {
    flex: 1;
    display: flex;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

@media (max-width: 600px) {
    .split-panels {
        flex-direction: column;
    }
}

/* AI Coaching Panel */
.coaching-panel {
    flex: 0 0 auto;
    width: 320px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 0; /* Critical for flex children to scroll properly */
}

@media (max-width: 600px) {
    .coaching-panel {
        width: 100%;
        flex: 0 0 180px;
    }
}

.coaching-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.panel-header .icon { font-size: 20px; }
.panel-header h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latency-badge {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.coaching-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coaching-prompt-item {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    animation: slideIn 0.3s ease;
}

.coaching-prompt-item.latest {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: var(--accent-light);
}

.coaching-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    font-style: italic;
}

/* Transcript Panel */
.transcript-panel {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0; /* Critical for flex children to scroll properly */
    overflow: hidden;
}

@media (max-width: 600px) {
    .transcript-panel {
        flex: 1;
        min-height: 150px;
    }
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.transcript-header .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.transcript-header .dot.live {
    background: var(--success);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.transcript-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transcript-line {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    max-width: 95%;
    background: var(--bg-elevated);
    color: var(--text-primary);
    animation: slideIn 0.2s ease;
}

.transcript-line.speaker-you {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--accent);
}

.transcript-line.speaker-them {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--success);
    align-self: flex-end;
}

.speaker-label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

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

.transcript-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Call Summary & Corrections Summary Sections */
.call-detail-section {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.call-detail-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.call-detail-section-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.call-detail-section-icon {
    font-size: 16px;
}

/* Call Summary */
.call-summary-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
    border-color: rgba(99, 102, 241, 0.2);
}

.call-summary-section .call-detail-section-header {
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.call-summary-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Corrections Summary */
.corrections-summary-section {
    background: linear-gradient(135deg, rgba(244, 138, 75, 0.08), rgba(244, 138, 75, 0.02));
    border-color: rgba(244, 138, 75, 0.2);
}

.corrections-summary-section .call-detail-section-header {
    border-bottom-color: rgba(244, 138, 75, 0.2);
}

.corrections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.correction-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
    border-left: 3px solid var(--ekho-orange);
    overflow: hidden;
    max-width: 100%;
}

.correction-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.correction-type.grammar {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent);
}

.correction-type.hallucination {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.correction-type.pii_masked {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.correction-type.coherence {
    background: rgba(244, 138, 75, 0.15);
    color: var(--ekho-orange);
}

.correction-type.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.correction-change {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.correction-original {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.correction-corrected {
    color: var(--text-primary);
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.correction-reason {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 4px;
}

.corrections-empty {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 12px;
}

/* Sales Lab Transcript Tabs */
.transcript-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.transcript-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.transcript-tab:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.transcript-tab.active {
    background: var(--accent);
    color: white;
}

.transcript-tab .tab-icon {
    font-size: 14px;
}

.transcript-tab .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.transcript-tab:not(.active) .tab-badge {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.transcript-tab-content {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.transcript-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Call Summary Tab Content */
.call-summary-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.call-summary-content .summary-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.call-summary-content .summary-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Corrections Tab Content */
.corrections-tab-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.corrections-tab-content .correction-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 14px;
    border-left: 3px solid var(--ekho-orange);
    overflow: hidden;
    max-width: 100%;
    flex-shrink: 0;
}

.corrections-tab-content .corrections-empty {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.corrections-tab-content .corrections-empty .empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Enhanced transcript in Sales Lab */
.sl-transcript-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.sl-transcript-entry {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.15s;
}

.sl-transcript-entry:hover {
    filter: brightness(1.05);
}

.sl-transcript-entry.speaker-you {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent);
}

.sl-transcript-entry.speaker-them {
    background: rgba(244, 138, 75, 0.08);
    border-left: 3px solid var(--ekho-orange);
}

.sl-transcript-timestamp {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    min-width: 60px;
    padding-top: 2px;
}

.sl-transcript-body {
    flex: 1;
}

.sl-transcript-speaker {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sl-transcript-entry.speaker-you .sl-transcript-speaker {
    color: var(--accent);
}

.sl-transcript-entry.speaker-them .sl-transcript-speaker {
    color: var(--ekho-orange);
}

.sl-transcript-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}

.sl-transcript-text .pii-mask {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.sl-transcript-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.sl-transcript-empty .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* Transcript with timestamp styling */
.transcript-section {
    background: var(--bg-primary);
    border-color: var(--border);
}

.transcript-entry-enhanced {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.transcript-entry-enhanced:hover {
    background: var(--bg-elevated);
}

.transcript-entry-enhanced.speaker-you {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent);
}

.transcript-entry-enhanced.speaker-you:hover {
    background: rgba(99, 102, 241, 0.12);
}

.transcript-entry-enhanced.speaker-them {
    background: rgba(244, 138, 75, 0.08);
    border-left: 3px solid var(--ekho-orange);
}

.transcript-entry-enhanced.speaker-them:hover {
    background: rgba(244, 138, 75, 0.12);
}

.transcript-timestamp {
    flex-shrink: 0;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    color: var(--text-muted);
    padding-top: 2px;
    min-width: 60px;
}

.transcript-content {
    flex: 1;
}

.transcript-speaker {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.transcript-entry-enhanced.speaker-you .transcript-speaker {
    color: var(--accent);
}

.transcript-entry-enhanced.speaker-them .transcript-speaker {
    color: var(--ekho-orange);
}

.transcript-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* PII Mask styling in transcript */
.pii-mask {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 4px;
    border-radius: 10px;
    flex-shrink: 0;
    min-height: 44px;
}

.nav-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-secondary);
}

.nav-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--accent);
    color: white;
}

.nav-tab .badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

