/* Audio Compare Styles */

/* Audio Cards */
.audio-card {
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.audio-a-card {
    border-color: #052c65;
}

.audio-b-card {
    border-color: #28a745;
}

.audio-card .card-header {
    background-color: rgba(5, 44, 101, 0.05);
    font-weight: 600;
}

.audio-a-card .card-header {
    background-color: rgba(5, 44, 101, 0.1);
    color: #052c65;
}

.audio-b-card .card-header {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

[data-bs-theme="dark"] .audio-card {
    border-color: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .audio-a-card {
    border-color: rgba(5, 44, 101, 0.6);
}

[data-bs-theme="dark"] .audio-b-card {
    border-color: rgba(40, 167, 69, 0.6);
}

[data-bs-theme="dark"] .audio-card .card-header {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .audio-a-card .card-header {
    background-color: rgba(5, 44, 101, 0.2);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .audio-b-card .card-header {
    background-color: rgba(40, 167, 69, 0.2);
    color: #75b798;
}

/* AB Test Controls */
.ab-controls button {
    min-width: 150px;
}

.playing-indicator {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playing-badge {
    font-size: 1.1rem;
    padding: 10px 20px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playing-badge.playing-a {
    background-color: #052c65 !important;
    color: white !important;
}

.playing-badge.playing-b {
    background-color: #28a745 !important;
    color: white !important;
}

/* Comparison Table */
.comparison-table {
    font-size: 0.95rem;
}

.comparison-table th {
    background-color: rgba(5, 44, 101, 0.05);
    font-weight: 600;
    color: var(--bs-primary-text-emphasis);
}

[data-bs-theme="dark"] .comparison-table th {
    background-color: rgba(255, 255, 255, 0.05);
}

.comparison-table td {
    vertical-align: middle;
}

.stat-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.stat-diff {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.stat-diff.positive {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.stat-diff.negative {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.stat-diff.neutral {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

[data-bs-theme="dark"] .stat-diff.positive {
    background-color: rgba(40, 167, 69, 0.3);
    color: #75b798;
}

[data-bs-theme="dark"] .stat-diff.negative {
    background-color: rgba(220, 53, 69, 0.3);
    color: #ea868f;
}

/* Chart */
#comparisonChart {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 10px;
}

[data-bs-theme="dark"] #comparisonChart {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"]

[data-bs-theme="dark"]

/* Progress Bar */
#playbackProgress {
    transition: width 0.1s linear;
}

/* Responsive */
@media (max-width: 768px) {

    .ab-controls button {
        min-width: 120px;
        font-size: 0.9rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .playing-badge {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}
