/* Website: Transcriber/src/app/static/css/partials/tab/implementations/tab.css v1.0 */
/* src/app/static/css/partials/tab/implementations/tab.css */

/* Status Icon Container */
.tab-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 1rem;
    position: relative;
}

/* ==== Loading (Sound Wave) ==== */
.tab-header.loading {
    background: linear-gradient(135deg, rgba(46, 217, 231, 0.25), rgba(36, 63, 83, 0.9));
    border-left: 4px solid var(--brand-color-primary);
    color: var(--tabs-text, var(--brand-color-container-foreground-light));
}

.tab-header.loading .tab-status-icon {
    gap: 3px;
}

.tab-header.loading .tab-status-icon::before,
.tab-header.loading .tab-status-icon::after,
.tab-header.loading .tab-status-icon div {
    content: '';
    display: block;
    width: 4px;
    background: var(--brand-color-primary);
    animation: waveAnim 1s infinite ease-in-out;
}

.tab-header.loading .tab-status-icon::before {
    height: 16px;
    animation-delay: 0s;
}
.tab-header.loading .tab-status-icon div {
    height: 20px;
    animation-delay: 0.2s;
}
.tab-header.loading .tab-status-icon::after {
    height: 12px;
    animation-delay: 0.4s;
}

@keyframes waveAnim {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

/* ==== Success ==== */
.tab-header.success {
    background: linear-gradient(135deg, rgba(24, 96, 9, 0.3), rgba(36, 63, 83, 0.9));
    border-left: 4px solid var(--brand-color-cta);
    color: var(--tabs-text, var(--brand-color-container-foreground-light));
}

.tab-header.success .tab-status-icon {
    font-size: 1.4rem;
    color: var(--brand-color-cta);
}

.tab-header.success .tab-status-icon::before,
.tab-header.success .tab-status-icon::after,
.tab-header.success .tab-status-icon div {
    display: none;
}

.tab-header.success .tab-status-icon::after {
    content: "✔";
    display: block;
}

/* ==== Failed ==== */
.tab-header.failed {
    background: linear-gradient(135deg, rgba(98, 0, 0, 0.38), rgba(36, 63, 83, 0.9));
    border-left: 4px solid rgba(255, 107, 107, 0.85);
    color: var(--tabs-text, var(--brand-color-container-foreground-light));
}

.tab-header.failed .tab-status-icon {
    font-size: 1.4rem;
    color: rgba(255, 107, 107, 0.95);
}

.tab-header.failed .tab-status-icon::before,
.tab-header.failed .tab-status-icon::after,
.tab-header.failed .tab-status-icon div {
    display: none;
}

.tab-header.failed .tab-status-icon::after {
    content: "❗";
    display: block;
}
