/* ==================== 工具栏 ==================== */

.tfa-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--ut-color-surface);
    border: 1px solid var(--ut-color-border);
    border-radius: var(--ut-radius-md);
}

.tfa-toolbar .btn {
    font-size: 0.85rem;
}

/* ==================== 账户卡片 ==================== */

.tfa-account-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--ut-color-surface);
    border: 2px solid var(--ut-color-border);
    border-radius: var(--ut-radius-md);
    transition: var(--ut-transition-fast);
}

.tfa-account-card:hover {
    border-color: var(--ut-color-primary-500);
    box-shadow: var(--ut-shadow-sm);
}

.tfa-account-info {
    flex: 1;
    min-width: 0;
}

.tfa-account-label {
    font-size: 0.85rem;
    color: var(--ut-color-text-muted);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== 验证码显示 ==================== */

.tfa-code-display {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ut-color-primary-600);
    letter-spacing: 4px;
    cursor: pointer;
    user-select: all;
    transition: var(--ut-transition-fast);
}

.tfa-code-display:hover {
    color: var(--ut-color-accent-500);
}

/* ==================== 进度条 ==================== */

.tfa-account-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-left: 16px;
}

.tfa-progress-wrapper {
    width: 80px;
    height: 4px;
    background: var(--ut-color-border);
    border-radius: 2px;
    overflow: hidden;
}

.tfa-progress-bar {
    height: 100%;
    background: var(--ut-color-primary-500);
    border-radius: 2px;
    transition: width 1s linear;
}

.tfa-progress-bar.tfa-progress-warning {
    background: #dc3545;
}

/* ==================== 操作按钮 ==================== */

.tfa-action-btns {
    display: flex;
    gap: 4px;
}

.tfa-action-btns .btn {
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* ==================== 空状态 ==================== */

.tfa-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ut-color-text-muted);
}

.tfa-empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--ut-color-primary-500);
    opacity: 0.5;
}

/* ==================== 模态框 Tab 内容 ==================== */

#add-account-modal .nav-tabs {
    border-bottom-color: var(--ut-color-border);
}

#add-account-modal .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ut-color-text-muted);
}

#add-account-modal .nav-link.active {
    color: var(--ut-color-primary-600);
    border-color: var(--ut-color-border) var(--ut-color-border) #fff;
}

.tfa-section-divider {
    text-align: center;
    color: var(--ut-color-text-muted);
    font-size: 0.85rem;
    margin: 12px 0;
    position: relative;
}

.tfa-section-divider::before,
.tfa-section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--ut-color-border);
}

.tfa-section-divider::before {
    left: 0;
}

.tfa-section-divider::after {
    right: 0;
}

/* ==================== 二维码模态框 ==================== */

.tfa-qrcode-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: var(--ut-radius-md);
    border: 2px solid var(--ut-color-border);
}

.tfa-qrcode-wrapper svg {
    max-width: 200px;
    height: auto;
}

.tfa-uri-display {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--ut-color-text-muted);
    word-break: break-all;
    background: var(--ut-color-surface-muted);
    padding: 8px 12px;
    border-radius: var(--ut-radius-sm);
    margin-top: 12px;
}

/* ==================== 响应式 ==================== */

@media (max-width: 768px) {
    .tfa-toolbar {
        justify-content: center;
    }

    .tfa-account-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tfa-account-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-left: 0;
    }

    .tfa-progress-wrapper {
        flex: 1;
        max-width: 120px;
    }

    .tfa-code-display {
        font-size: 1.6rem;
    }
}
